Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time zone problem

Status
Not open for further replies.

Theoneandonly

IS-IT--Management
Jan 21, 2002
88
BE
Hi all,

I had problem last year when we had to pass from winter to summer time. The time was not programmed to change itself, and when I changed manually, it failed to set correctly. Now that we will have to go for winter time again, I'm looking for some info, to avoid these problems.
I have a 43P150 with AIX 4.3.3 ML06.
The variable is defined TZ=NFT-1DFT. Does anybody knows what that means exactly ? Ho can I automate the change to add or remove one hour (for GMT+1 Brussels)?

Thanks

 
every program and user uses TZ from its environment, only problem is that cron works at system TZ

NFT-1DFT means that:

in winter you call your time zone NFT

UTC is 1H back from your preferred time, so you are ~5 degrees west of London

in summer you call it DFT and it is one more hour ahead of UTC, if you omit that there is no change to summer

AIX canges system TZ over reboot, but hardware and kernel accounts UTC time

You can make another TZ for every particular user/program in .profile or in command line like
TZ=WET-2WET app_for_friends_in_finland

if you need more than 1 TZ value, setting hardware to UTC is highly recommended.
 
Our set up works quite well, so you might be interested in that. Simply smitty....system environments....Change / Show Date & Time....Change Time zone using user inputted values.

I'll paste what we have:

Standard Time ID(only alpahabets) [GMT]
* Standard Time Offset from CUT([+|-]HH:MM:SS) [0]
Day Light Savings Time ID(only alpahabets) [BST]
Day Light Savings Time Offset from CUT([+|-]HH:MM: []
SS)
Start Daylight Savings Day([Mmm.ww.dd|Jn]) [M3.5.0]
Start Daylight Savings Time(HH:MM:SS) [2:00:00]
Stop Daylight Savings Day([Mmm.ww.dd|Jn]) [M10.5.0]
Stop Daylight Savings Time [2:00:00]

This means that we move in and out of Summer time each Sunday morning at 02:00, in the fifth week of Month 3 and 10.

You would need to change the offset so it pushes or pulls the time into your zone. I'm not sure how significant the BST value would be - might just be for reference. In this situation it means 'British Summer Time'

our TZ variable displays thus:

GMT0BST,M3.5.0/2:00:00,M10.5.0/2:00:00

HTH
Mark
 
Interesting, Mark. Ours displays:

GMT0BST,J84/2,J301/26

obviously using Julian dates for some reason.
 
Thanks all!

I'll use Mark's settings, as it seems to be what I need, then wait and see...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top