?
Solved

AIX 4.3.3  Daylight Savings Time

Posted on 2007-03-26
9
Medium Priority
?
1,059 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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 500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

762 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