LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-12-2007, 03:27 PM   #1
slowgeek
LQ Newbie
 
Registered: Jun 2006
Distribution: redhat taroon
Posts: 1

Rep: Reputation: 0
Question Daylight Savings Time for 2007


I have several redhat servers I need to get ready for the DST change this year. I have a RedHat RHEL 3 AS server and serveral redhat valhalla distro servers.

I'd like to know how to verify what the current setting is, how to change it, and verify again when I've made the change.

Thanks for any help, hope everyone has a great year!
(my first post...yeah!)
 
Old 01-12-2007, 05:59 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Easiest way to set this up is to just setup ntp or setup a server running ntpd to update your time on your servers. Good place to start possibly after a google search is here: http://www.halley.cc/ed/linux/howto/ntp.html
 
Old 01-12-2007, 08:52 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Welcome to LQ!

I think you will need to install an updated tzdata package. Hopefully, it includes where you are.

In my experience, NTP doesn't take DST into account unless the tzdata tells it to.

--Ian
 
Old 01-13-2007, 09:14 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I think the question is where to get the updated time zone data or at least how to update it accordingly.

NTP is used to keep time in sync but doesn't set time zones. You need to have appropriate time zone. Time itself is actually set in UTC (GMT) and its the time zone variable that determines how it is displayed for your system

If nothing else one can use zdump to dump the current time zone file, modify it appropriately, and use zic to create the revised one. Of course its the appropriately modifying it that will take some work. Personally I'm hoping there will be updated zone files produced by someone else that can be just installed.

By the way that only changes the OS time zone stuff. Make sure you check for tzupdater for your Java versions from the Java site. Java apparently doesn't use the OS time zone. So far I've seen that HP has issued updates for its HP-UX time zones and believe Sun has for Solaris. I haven't checked RedHat.

So I was following this thread just to see if anyone knew of already updated zone files. If I don't see it by the end of February I'll probably take a stab at it myself. Figured I'd throw out the above for anyone who doesn't want to wait.
 
Old 01-13-2007, 12:04 PM   #5
Brydon
Member
 
Registered: Dec 2006
Location: Lancaster, Ontario
Distribution: Fedora 6-7, CentOS 5, Red Hat 9, Ubuntu
Posts: 36

Rep: Reputation: 15
Let's see if I can make this a little simple. I have just finished updating my Red Hat 9 servers, Fedora 6 notebook and all my Windoze machines.

Let's start off by clearing up some misconceptions. NTP only sets the UTC time on the computer, the timezone files will display this time in the correct time zone for your region.

Newer, supported distros will have glibc updates ready for the timezone change. Un-supported distros as in Red Hat 9 need a little work.

On my servers, I used

#zdump -v /etc/localtime | grep 2007

to verify the 2007 timezone settings. Mine showed April 1st as the date of change... and not March 11.

I went to http://www.twinsun.com/tz/tz-link.htm and downloaded tzdata2006p.tar.gz. I un-tared this file into a temp directory and executed

# zic -d /tmp/zoneinfo northamerica

to compile the timezone data files. I then copied the EST5EDT file to /usr/share/zoneinfo/ directory and America/Montreal file into /usr/share/zoneinfo/America directory. Doing a quick test will make sure these new files are good.

# zdump -v /usr/share/zoneinfo/EST5EDT | grep 2007
# zdump -v /usr/share/zoneinfo/America/Montreal | grep 2007

lastly I linked the localtime file

# ln -fs /etc/localtime /usr/share/zoninfo/EST5EDT
# zdump -v /etc/localtime | grep 2007

the expected output should look a little like thi

/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000

Hope this helped.

BTW, If you want to update Windoze,I used tzedit.exe to get this to work.

Scott
 
Old 01-25-2007, 08:04 AM   #6
jacqespi
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Thumbs up Thank you, Brydon!

Your post was most helpful in configuring my RH 9 system for the 2007 DST changes. I appreciate your clear explanation very much.

I actually used tzdata2007a.tar.gz from ftp://elsie.nci.nih.gov/pub/

Last edited by jacqespi; 01-25-2007 at 08:10 AM.
 
Old 01-27-2007, 05:26 PM   #7
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
DST Java

Which tzupdater I need to upgrade the Java to be DST compliant in RHEL AS3/AS4 ? I am lost in that and the time is running out as we are heading to the deadline.
 
Old 01-27-2007, 06:54 PM   #8
Brydon
Member
 
Registered: Dec 2006
Location: Lancaster, Ontario
Distribution: Fedora 6-7, CentOS 5, Red Hat 9, Ubuntu
Posts: 36

Rep: Reputation: 15
I don't know for sure but if java needs to be updated then update from Sun. As for RH3 / RH4, just update there glib packages.

Correct me if I'm wrong but shouldn't Java get the timezone info from the OS?

Scott
 
Old 01-28-2007, 08:24 AM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Java doesn't get its timezone from the OS. It is supposed to be machine independent so it has its own timezone setup. You need to update Java using the tzupdater from Sun.
 
Old 01-28-2007, 12:09 PM   #10
Brydon
Member
 
Registered: Dec 2006
Location: Lancaster, Ontario
Distribution: Fedora 6-7, CentOS 5, Red Hat 9, Ubuntu
Posts: 36

Rep: Reputation: 15
Thanks jlightner, you learn something new everyday.

Scott
 
Old 01-30-2007, 03:54 PM   #11
andrewz
LQ Newbie
 
Registered: Jan 2007
Location: Chicago
Distribution: rhel3, rhel4, centos3, centos4
Posts: 8

Rep: Reputation: 0
Thumbs up

I found this doc from IBM which covers everything regarding the DST change. It explains the totally confusing vague updates provided by redhat.
http://www-1.ibm.com/support/docview...&cc=us&lang=en
 
Old 02-01-2007, 09:25 AM   #12
shawnedwards
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Problems completing this

I have attempted this fix on two other systems, both Fedora Core 5 machines, and got 100% successful.

However, I am attempting this on a Debian Ubuntu machine, and seems it completely blew up my dst settings..

Now when i take a look at amy local time zone, the following shows:

PS - I'm in NST Newfoundland Time Zone (-3:30)

Newfoundland Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 Newfoundland isdst=0 gmtoff=0
Newfoundland Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 Newfoundland isdst=0 gmtoff=0
Newfoundland Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 Newfoundland isdst=0 gmtoff=0
Newfoundland Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 Newfoundland isdst=0 gmtoff=0


When i check other time zones in Canada, they read the same time... anyone have any ideas?
 
Old 02-01-2007, 11:00 AM   #13
Tom Henderson
LQ Newbie
 
Registered: Feb 2007
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Ubuntu time changes

Shawn, first of all, if it's Ubuntu, then there's probably already an update from Ubuntu for your time zone. I'd check there first.

Try zdump -v Canada/Newfoundland |grep 2007. If that works for you, then you'll probably want to ensure your time zone is set to Canada/Newfoundland instead of just NST.

I know for me on Debian, the time zone is set to US/Central.

On Debian, zdump -v Canada/Newfoundland |grep 2007 gives me:

Canada/Newfoundland Sun Mar 11 03:30:59 2007 UTC = Sun Mar 11 00:00:59 2007 NST isdst=0 gmtoff=-12600
Canada/Newfoundland Sun Mar 11 03:31:00 2007 UTC = Sun Mar 11 01:01:00 2007 NDT isdst=1 gmtoff=-9000
Canada/Newfoundland Sun Nov 4 02:30:59 2007 UTC = Sun Nov 4 00:00:59 2007 NDT isdst=1 gmtoff=-9000
Canada/Newfoundland Sun Nov 4 02:31:00 2007 UTC = Sat Nov 3 23:01:00 2007 NST isdst=0 gmtoff=-12600

Of course, I have no idea if that's right, since I've never been to Newfoundland ....
 
Old 02-01-2007, 12:00 PM   #14
shawnedwards
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Change to DST

Hi Tom,

Thanks for the info.. Strange thing is if i do zdump and i'm in the dir /usr/share/zoneinfo/Canada

I get that old info

but if i'm somewhere else and type

zdump -v /usr/share/zoneinfo/Canada/Newfoundland

I get the correct info..

weird.. Thanks for your help anyway though..

P.S. If you ever come to newfoundland come in the summer too much snow in the winter
 
Old 02-06-2007, 04:01 PM   #15
durus123
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Rep: Reputation: 0
Is there something quick and simple to check that the Java is properly updated - similar to checking /etc/localtime? We have Red Hat RHEL AS 3 and 4 servers.

Thanks


Cathy
 
  


Reply

Tags
dst



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
Turning Off Daylight Savings Time troy.porter Red Hat 1 03-10-2007 12:02 PM
Server time and daylight savings dtra Linux - General 2 03-23-2006 04:10 PM
Daylight Savings time depdiver Linux - General 4 03-13-2006 01:30 PM
Daylight savings time depdiver Red Hat 2 02-21-2006 10:00 AM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:41 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