LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2006, 03:11 PM   #1
dux0r
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
new Daylight Saving Time dates


Daylight Saving Time will occur on dates in 2007 that don't conform to the old standards.

from Wikipedia:

Quote:
DST commonly begins in the northern hemisphere on the last Sunday in March or the first Sunday in April, and ends on the last Sunday in October. However, due to the Energy Policy Act of 2005, beginning in 2007, the United States will begin observing DST from the second Sunday in March until the first Sunday in November. (Studies will determine if this remains permanent.)
What files tell Linux which dates to spring forward and fall back? Will I replace files or change configurations? I tested a server in the office and it's currently configured to spring forward on 4/1/2007 rather than 3/11/2007.

This is my first Linux question, please be gentle.
 
Old 12-04-2006, 04:22 PM   #2
derxob
Member
 
Registered: Apr 2006
Location: Los Angeles, California
Distribution: Slackware, Ubuntu
Posts: 68

Rep: Reputation: 16
Welcome to the forums!

I'd suggest a 'swifter' alternative to worrying about dates/times all the time.

Check out "ntpdate" - It is a network time protocol that you can set to poll a specific "time server" and it will automagically adjust your time. For example, on my servers, I have a bootup script run "ntpdate time.nist.gov" every time the machine is rebooted, which keeps it in sync with the time according to the National Institute of Standards and Technology.

Last edited by derxob; 12-04-2006 at 04:23 PM.
 
Old 12-04-2006, 06:35 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
I think even using ntp, you need to tell it about daylight savings.

If you are using Debian, get the new tzdata package from Unstable. This may include updates for your time zone if your change dates have changed. Just install it, and everything should work properly. This package also works on Ubuntu.

I hope this helps
--Ian
 
Old 12-04-2006, 10:53 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by dux0r
What files tell Linux which dates to spring forward and fall back? Will I replace files or change configurations?
It depends on what distribution you use (or more importantly, what C library your system uses). For most glibc implementations, timezone info is stored in a zoneinfo database (/usr/share/zoneinfo or similar). AFAIK, the same goes for BSD libc implementations. Some embedded c libraries may be different (e.g., uClibc 0.9.28 lacks tzfile() capabilities, and requires the setting of the TZ environment variable or existence of /etc/TZ file. for example, this applies to the OpenWRT Project). Generally, your distro vendor should provide up-to-date zoneinfo databases. If not, you can probably get appropriate files and/or utilities from either glibc or a public provider such as ftp://elsie.nci.nih.gov/pub.
Quote:
Originally Posted by dux0r
I tested a server in the office and it's currently configured to spring forward on 4/1/2007 rather than 3/11/2007.
Are you sure? How did you test it? If you have a modern distro, you should be able to see past and future dates using zdump. For example, on my machine,
Code:
root@localhost # zdump -v EST5EDT | grep 2007
EST5EDT  Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0
EST5EDT  Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1
EST5EDT  Sun Nov  4 05:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 EDT isdst=1
EST5EDT  Sun Nov  4 06:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 EST isdst=0
 
Old 12-08-2006, 10:15 AM   #5
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
is this tied to compilation of glibc? so if i just update the /usr/share/zoneinfo from another box would this work?
 
Old 12-28-2006, 02:11 PM   #6
steinz
Member
 
Registered: Mar 2006
Posts: 58

Rep: Reputation: 16
for this kind of update, do I need to bring down my database first?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Doub about `net time set` and daylight saving time Thakowbbery Linux - Software 0 10-17-2005 05:23 AM
DO NOT use Daylight Saving Time - how? EcceVery Debian 4 05-28-2005 02:21 PM
How to un-config automatic Daylight Saving Time? davi_cabral Linux - General 2 10-13-2004 02:57 PM
How to setup Daylight Saving Time erick Linux - Software 1 10-15-2003 09:53 AM
CRON ignores Daylight Saving Time? MikHud Linux - General 7 04-09-2002 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration