03-28-2002
When your box says $TZ is "WET +5" (yours could be diffrent then +5):
1) There is a line in /etc/default/init that says:
TZ=WET +5
2) There is a *file* in /usr/share/lib/zoneinfo named "WET+5":
% ls -l /usr/share/lib/zoneinfo/GMT+5
-rw-r--r-- 2 root bin 58 Jan 8 2000 /usr/share/lib/zoneinfo/GMT+5
This file was created by:
# cd /usr/share/lib/zoneinfo
# zic src/etcetera
# zic src/backward
The zoneinfo source files (in src/) are ascii text, format defined
by the zic(1M) man page.
I'm guessing you're in Westtern Europe. Probably
what you really want is to change your /etc/default/init entry
to:
TZ=Europe/Belgrade
(Check your local timezone and configure the same)
reboot your system.
NOTE: Depending on who installed your machines, you may not have a /usr/share/lib/zoneinfo/Europe/Belgrade file. Check first, and if the file is not there:
# cd /usr/share/lib/zoneinfo
# zic src/europe
This is completely safe. Once the zone files are there, you can play with them
% echo $TZ
US/Pacific
% date
Wed Jul 4 09:58:30 PDT 2002
% TZ=Asia/Calcutta
% export TZ
% date
Wed Jul 4 22:28:36 IST 2002
% TZ=Australia/Tasmania
% date
Thu Jul 5 03:00:08 EST 2002
Once you're satisfied, make your change to /etc/default/init and reboot..
Post back if this doesnt help.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm running on UNIX with Solaris. I need to change the Timezone on the box and was going to make the changes to the files and then reboot the box.
Someone warned me that this method should not be used and that a util (unconfig.sys I think it was) should be used to make the changes.
Any ideas... (2 Replies)
Discussion started by: Lextar
2 Replies
2. UNIX for Dummies Questions & Answers
Hello again,
under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am.
i dont know who reads this file to set after reading the timezone under /usr/lib/tztab.
my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i am searching to change the timezone on a HP-UX11 system. Since last weekend the summertime started i am not able to change the time to the new time, every day the time changes back to wintertime. I think the problem is that the server is on the wrong timezone. Can someone help me please?... (1 Reply)
Discussion started by: eddyvdv
1 Replies
4. UNIX for Advanced & Expert Users
HI ;
I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1.
So i have every time to "set TZ=GMT ; export $TZ" .
How can i set the TZ=GMT at the startup defenitely.
Thanks
:) (7 Replies)
Discussion started by: oss
7 Replies
5. AIX
Hi
On several AIX 5.3 LPARs the timezone is currrently set to:
TZ=NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00
Daylight savings in NZ starts on Sun 28th Sep 2008, which is the fourth Sunday. Do I need to change my TZ variable to NZST-12NZDT,M9.4.0/02:00,M4.1.0/03:00 or will AIX interpret the fifth... (2 Replies)
Discussion started by: KiwiP
2 Replies
6. Shell Programming and Scripting
Hi All,
While installing Red Hat Linux, I tried changing the timezone to Japan for testing.But the timezone was not set to Japan.
I tried other timezones , but they didn't work as well.
I am guessing the problem might be due to some missing rpm.Does anyone has any idea or faced a similar... (1 Reply)
Discussion started by: nua7
1 Replies
7. Solaris
Hi Everyone,
We have Solaris server which displays the time in CET and our application is used across the globe.(Users are in singapore, poland, US).
At present in order to display Timezone we are manually manupulating time based on country in a enviromental file.
I want to know , do we... (2 Replies)
Discussion started by: gehlnar
2 Replies
8. Solaris
Hi,
On my server timezone is IST, so I have configured the sudo for user to change the date, but when he is changing the date time zone is also getting changed from ist to gmt. using solaris 10. I have checked in /etc/TIMEZONE file in that it is showing TZ=Asia/Calcutta, wheather any other file... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
9. Solaris
hii there...
can you guys help me with TIMEZONE setting on my solaris box
i tried to edit cat /etc/TIMEZONE..but i think it will work after rebooting,
but something i did which took me to GMT
my problem is i have this issue on a server, and i have to fix this without rebooting.
thanks for... (1 Reply)
Discussion started by: 6pound
1 Replies
10. UNIX for Dummies Questions & Answers
HI Gurus,
I have a issue. One of our applications needs the data loads with the timezone (CST) but our zones run on GMT. I tried to change the TZ value under /etc/default/init value but it seems to effect the the whole zone. Is there any way I can just set up the TZ as CST for a particular user.... (2 Replies)
Discussion started by: rama krishna
2 Replies
LEARN ABOUT FREEBSD
tzsetup
TZSETUP(8) BSD System Manager's Manual TZSETUP(8)
NAME
tzsetup -- set local timezone
SYNOPSIS
tzsetup [-nrs] [-C chroot_directory] [zoneinfo_file | zoneinfo_name]
DESCRIPTION
The tzsetup utility reads a database of timezone information and presents a menu allowing the user to select a specific zone without knowing
the details of the database layout. The selected zone is installed as the system default zone. The tzsetup utility also determines whether
any adjustment is necessary for systems where the hardware clock does not keep UTC.
The following options are available:
-C chroot_directory
Open all files and directories relative to chroot_directory.
-n Do not create or copy files.
-r Reinstall the zoneinfo file installed last time. The name is obtained from /var/db/zoneinfo.
-s Skip the initial question about adjusting the clock if not set to UTC.
It is possible to short-circuit the menu system by specifying the location of a zoneinfo_file or the name of the zoneinfo_name on the command
line; this is intended mainly for pre-configured installation scripts or people who know which zoneinfo they want to install.
TIMEZONE DATABASE
The contents of the timezone database are indexed by /usr/share/zoneinfo/zone.tab. This file lists, for each timezone data file, the ISO
3166 territory code, approximate geographical coordinates (in ISO 6709 format), and location within the territory.
The maintainers of the database maintain the following policies:
1. At least one zone for every country or inhabited geographical territory.
2. One zone for every distinct, documented timezone history since the beginning of the UNIX epoch (January 1, 1970, GMT).
3. Each zone is named for the most populous city therein. (Where possible, the database includes pre-1970 history for its city.)
The source code to the database (/usr/src/share/zoneinfo/[a-z]*) contains many additional comments and documentation references for the his-
torically minded.
FILES
/etc/localtime current time zone file
/etc/wall_cmos_clock see adjkerntz(8)
/usr/share/misc/iso3166 mapping of ISO 3166 territory codes to names
/usr/share/zoneinfo directory for zoneinfo files
/usr/share/zoneinfo/zone.tab mapping of timezone file to country and location
/var/db/zoneinfo saved name of the timezone file installed last
EXAMPLES
Normal usage, to select the right zoneinfo file via the dialog-based user interface:
tzsetup
Install the file /usr/share/zoneinfo/Australia/Sydney:
tzsetup /usr/share/zoneinfo/Australia/Sydney
Install the zoneinfo file for Australia/Sydney, assumed to be located in /usr/share/zoneinfo:
tzsetup Australia/Sydney
After a reinstall of the zoneinfo files, you can reinstall the latest installed zoneinfo file (as specified in /var/db/zoneinfo):
tzsetup -r
SEE ALSO
date(1), adjtime(2), ctime(3), timezone(3), tzfile(5), adjkerntz(8), zdump(8), zic(8)
DISCLAIMER
The representation of certain localities as being associated with certain countries and/or territories is for the purposes of identification
only, and does not imply any endorsement or rejection on the part of the FreeBSD Project of the territorial claims of any entity.
BUGS
Programs which are already running when tzsetup creates or updates /etc/localtime will not reflect the updated timezone. When the system is
first configured for a non-UTC hardware clock, it is necessary to run adjkerntz(8) (which normally happens as a part of system startup) in
order to update the kernel's idea of the correct timezone offset.
BSD
October 21, 2009 BSD