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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time change

Status
Not open for further replies.

unixfreak

ISP
Oct 4, 2003
632
GB

Hi, if my $TZ is GMT0BST,M3.5.0,M10.5.0, will it change correctly at 3am? All info I can find about this has a setting like GMT0BST,M3.5.0/3:00,M10.5.0/2:00 or GMT0BST,M3.5.0/4:00,M10.5.0/4:00. Confusing

Do I need to put in the time?
 
as far as i remember you should have something like

echo $TZ

NFT-1DFT-02:00:00,M3.5.0/02:00:00,M10.5.0/03:00:00
 
If it's any help, this $TZ works on our servers:

GMT0BST,M3.5.0/02:00:00,M10.5.0/03:00:00

and we've not yet experienced a problem in three years.

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
unixfreak said:
will it change correctly at 3am
As I understand it, a TZ setting like yours, with no time added (ours is GMT0BST,M3.5.0,M10.5.0) will reset the clock so that, at 02:00 it will revert to 01:00.

This means that any cron jobs between 01:00 and 02:00 will be run twice.
man cron said:
Note:

o If you have a job scheduled to run between 1:00 AM and 2:00 AM on the
day your time zone changes from daylight saving time to standard time
your job will run twice.
o If you have a job scheduled to run between 2:01 AM and 2:59 AM on the
day your time zone changes from standard time to day light savings time
your job will not run. You can change the time these jobs run, run them
manually, or with until the following day to run them. The cron daemon
does not need to be stopped. However, if changes are made to the TZ
environment variable, kill the current cron daemon so that it
automatically respawns and recognizes the new TZ setting.

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top