Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!)
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
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.
Distribution: Fedora 6-7, CentOS 5, Red Hat 9, Ubuntu
Posts: 36
Rep:
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.
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.
/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.
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.
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.
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?
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 ....
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.