10-10-2008
What OS are you running?
You will need to reboot the server even in Solaris 10.
Anything that displays time may need restarted. The TIMEZONE file
is read during initialization and not accessed again. While restarting
daemons might do the trick, the only way to be sure all pieces of
the system have seen the change is reboot, especially for something
that will affect cron
Example
1) As a root execute the following command.
#zic /usr/share/lib/zoneinfo/asia
2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta".
3. As root, execute the following:
#TZ=Asia/Calcutta
#export TZ
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Tru64 (4.0D)
How to change the time zone setting for the system?
Sanjay (5 Replies)
Discussion started by: sanjay_g
5 Replies
2. HP-UX
I want to know how to change the time zone from BST to GMT avoid the daylight savings in hp-ux (3 Replies)
Discussion started by: tomjones
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to shell script programming, I only have Java programming background.
I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies
4. AIX
Hi,
A server runs on EDT. Can I set a user with time-zone GMT without changing the server time?
regards,
Roshni (1 Reply)
Discussion started by: RoshniMehta
1 Replies
5. AIX
hi
may aix version is 6100-06-03-1048
when i give date command it shows the time zone as
root@cbspsgui01 #date
Fri Sep 16 08:43:42 Africa/Johannesburg 2011
I want to change the time zone to GMT +02:00:
After i change the time zone it should show something like the one below when i type... (2 Replies)
Discussion started by: newtoaixos
2 Replies
6. Solaris
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies
7. Solaris
can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT.
System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies
8. Shell Programming and Scripting
Hi Folks,
My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST.
IST time leads 9:30 mins to EDT. and i wrote something like below.
... (6 Replies)
Discussion started by: Showdown
6 Replies
9. Shell Programming and Scripting
Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone.
For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies
10. Solaris
Hello all,
I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed, can this take effect without rebooting Solaris 10? (9 Replies)
Discussion started by: Amr.Es
9 Replies
LEARN ABOUT SUNOS
timezone
timezone(4) File Formats timezone(4)
NAME
timezone - default timezone data base
SYNOPSIS
/etc/timezone
DESCRIPTION
The timezone file contains information regarding the default timezone for each host in a domain. Alternatively, a single default line for
the entire domain may be specified. Each entry has the format:
Timezone-name official-host-or-domain-name
Items are separated by any number of blanks and/or TAB characters. A `#' indicates the beginning of a comment; characters up to the end of
the line are not interpreted by routines which search the file. The timezone is a pathname relative to the directory /usr/share/lib/zone-
info.
This file is not actually referenced by any system software; it is merely used as a source file to construct the NIS timezone.byname map.
This map is read by sysidtool(1M) to initialize the timezone of the client system at installation time. For more information, see the
Solaris 10 Installation Guide: Basic Installations.
The timezone file does not set the timezone environment variable TZ. See TIMEZONE(4) for information to set the TZ environment variable.
EXAMPLES
Example 1: Typical timezone line
Here is a typical line from the /etc/timezone file:
US/Eastern East.Sun.COM #Sun East Coast
FILES
/etc/timezone
SEE ALSO
sysidtool(1M), TIMEZONE(4)
Solaris 10 Installation Guide: Basic Installations
SunOS 5.10 18 Feb 2003 timezone(4)