Solved

AIX 4.3.3  Daylight Savings Time

Posted on 2007-03-26
9
1,050 Views
Last Modified: 2013-11-17
I am running an old unsupported version of AIX 4.3.3 because of legacy applications.  Because of the new Daylight savings time initiatives, I went in and issued the  command:
 chtz EST5EDT,m3.2.0/2:00:00,m11.1.0/2:00:00
I rebooted the machine to make sure the changes took affect and verified this line was in the /etc/enviroment file.  The second weekend in March came and the time did not change.  Any thoughts as to why this did not work?
0
Comment
Question by:ASI_Sysadmin
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 18797976
AIX 4.3.3 DST Workaround (Out of support)
You can try to  manually specify when to start and stop DST by setting the TZ
environment variable in the /etc/environment file. An example for the US
Central timezone follows:

TZ=CST6CDT,M3.2.0,M11.1.0
"M3.2.0" means to go on DST starting in month 3 (March), week 2, and Day
0 (Sunday).
"M11.1.0" means 1st Sunday in November.
NOTE: Reboot the system before March, 2007 so all processes running will
pick up the new time change.

0
 

Author Comment

by:ASI_Sysadmin
ID: 18799026
The chtz changes the /etc/environment file.  My /etc/environment  file is :
TZ=EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00
and I did a reboot of the machine after I verified the entry was correct.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 18804991
Please have a look at this one to see if it can help:
http://www.tek-tips.com/viewthread.cfm?qid=1318628&page=6
0
 

Author Comment

by:ASI_Sysadmin
ID: 18807090
Thanks yuzh for the information.   Unfortunately, those were the steps I performed.  I ran the chtz command, verifed the change took place in the /etc/environment file, and then rebooted the machine before March 11.  Sadly when March 11 came the time did not change, now I am wondering if on April 1st, it will change again :-(
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:Graeme_Cowell
ID: 18808172
I can't see why it hasn't worked!  Don't forget that the time doesn't actually change - only the way it's displayed.  Have you checked the value of TZ in the shell (it could be that a value in /etc/profile or.profile overrides /etc/environment)?  Also check the output from the date +%Z to see if that is correct.
0
 

Author Comment

by:ASI_Sysadmin
ID: 18809894
from the /etc/environment file:
TZ=EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00
from the command line
echo $TZ
       EST5EDT
from /etc/profile
      export TZ=EST5EDT


0
 
LVL 1

Accepted Solution

by:
Graeme_Cowell earned 125 total points
ID: 18814617
That looks like your problem then, the timezone is being picked up from /etc/profile not /etc/environment.  If you remove the "export TZ=EST5EDT" from /etc/profile (alternatively change the line in /etc/profile to "export TZ=EST5EDT,M3.2.0/2:00:00,M11.1.0/2:00:00") and start a new session, the time should display correctly.  Do check using "date +%Z" that EDT is displayed.
0
 
LVL 9

Expert Comment

by:Suhas .
ID: 21161708
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:

Accept: Graeme_Cowell {http:#18814617}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Suhas
Experts Exchange Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21197545
Forced accept.

Computer101
EE Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now