LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-03-2007, 08:59 AM   #1
prpersonal
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
DST Time Change in Australia not working


Hello All,
I wanted to update my linux box with the recent DST changes in Australia/Newzealand. I downloaded the latest tzdata from ftp://elsie.nci.nih.gov/pub/ and I compiled 'australasia' using zic compiler. I replaced the latest timezone settings for Australia in /usr/share/zoneinfo.

zdump shows the recent DST changes for Australian time zones. (from 2008, daylight savings starts on the first Sunday in October and end on the first Sunday in April)

[root@a10-10-4-61 root]# zdump -v /etc/localtime | grep 2008
/etc/localtime Sat Apr 5 16:29:59 2008 UTC = Sun Apr 6 02:59:59 2008 CST isdst=1 gmtoff=37800
/etc/localtime Sat Apr 5 16:30:00 2008 UTC = Sun Apr 6 02:00:00 2008 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 4 16:29:59 2008 UTC = Sun Oct 5 01:59:59 2008 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 4 16:30:00 2008 UTC = Sun Oct 5 03:00:00 2008 CST isdst=1 gmtoff=37800
[root@a10-10-4-61 root]#

Now my problem is, DST settings for Australia starts correctly on first sunday of October, but it is not ending at first sunday of April.

DST START: (working perfectly)
---------

[root@a10-10-4-61 root]# date
Sun Oct 5 01:59:59 CST 2008
[root@a10-10-4-61 root]# date
Sun Oct 5 03:00:00 CST 2008
[root@a10-10-4-61 root]#

DST END: (not working)
--------

[root@a10-10-4-61 root]# date
Sun Apr 6 02:59:59 CST 2008
[root@a10-10-4-61 root]# date
Sun Apr 6 03:00:00 CST 2008
[root@a10-10-4-61 root]#

To cross verify, I tried the same things in Fedora Core 7 without the patch, there also I observed the same behavior. i.e., without the patch, DST correctly starts on last Sunday of October, but not ending at last Sunday of march.

Not sure if I am doing something wrong.

Any help would be highly appreciated.

Thanks for your time,
Prabhu
 
Old 10-03-2007, 09:26 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Try seeing what happens at 1:59:59?
 
Old 10-03-2007, 09:31 AM   #3
prpersonal
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Yes I tried that too, and observed the same behavior.
 
Old 10-03-2007, 02:03 PM   #4
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64-15.0
Posts: 103

Rep: Reputation: Disabled
I think the problem may be that you are going backwards in time when testing the Daylight Saving Time changes (i.e. doing the Oct 2008 first, and then Apr 2008).

Try doing the Daylight Saving time changes in the order they would occur.

1. First, set the date/time to the current time and date (which is Standard time).

2. Advance the date/time to just before the expected time change in Oct 2007 (changing from Standard to Daylight). You should see the time advance by 1 hour.

If you see the time change then you are definately in Daylight Saving Time. The next step will not work if you are not in Daylight Saving Time.

(I noticed that your zdump output always shows the acronym for your timezone as CST. That's odd. Here in North America we change the middle letter to indicate when DST is active (e.g. EST <-> EDT). That make it easier to tell when DST is active.)

3. Now advance the date/time to just before the expected time change in Apr 2008 (changing from Daylight to Standard). You should see the time go back one hour.

4. Now advance the date/time to just before the expected time change in Oct 2008 (changing from Daylight to Standard). The time should go forward 1 hour.
 
Old 10-04-2007, 03:45 AM   #5
prpersonal
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Yes I tried that too, but not seeing any difference. Pl. check the following output:

[root@a10-10-4-61 root]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sat Mar 24 16:29:59 2007 UTC = Sun Mar 25 02:59:59 2007 CST isdst=1 gmtoff=37800
/etc/localtime Sat Mar 24 16:30:00 2007 UTC = Sun Mar 25 02:00:00 2007 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 27 16:29:59 2007 UTC = Sun Oct 28 01:59:59 2007 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 27 16:30:00 2007 UTC = Sun Oct 28 03:00:00 2007 CST isdst=1 gmtoff=37800
[root@a10-10-4-61 root]#

[root@a10-10-4-61 root]# zdump -v /etc/localtime | grep 2008
/etc/localtime Sat Apr 5 16:29:59 2008 UTC = Sun Apr 6 02:59:59 2008 CST isdst=1 gmtoff=37800
/etc/localtime Sat Apr 5 16:30:00 2008 UTC = Sun Apr 6 02:00:00 2008 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 4 16:29:59 2008 UTC = Sun Oct 5 01:59:59 2008 CST isdst=0 gmtoff=34200
/etc/localtime Sat Oct 4 16:30:00 2008 UTC = Sun Oct 5 03:00:00 2008 CST isdst=1 gmtoff=37800
[root@a10-10-4-61 root]#

DST STARTING CORRECTLY ON OCT'2007
----------------------------------

[root@a10-10-4-61 root]# date -s "01:59:55 October 28, 2007"
Sun Oct 28 01:59:55 CST 2007
[root@a10-10-4-61 root]# date
Sun Oct 28 01:59:59 CST 2007
[root@a10-10-4-61 root]# date
Sun Oct 28 03:00:00 CST 2007
[root@a10-10-4-61 root]#

DST NOT ENDING ON APRIL'2008
----------------------------

[root@a10-10-4-61 root]# date -s "02:59:55 April 06, 2008"
Sun Apr 6 02:59:55 CST 2008
[root@a10-10-4-61 root]# date
Sun Apr 6 02:59:59 CST 2008
[root@a10-10-4-61 root]# date
Sun Apr 6 03:00:00 CST 2008
[root@a10-10-4-61 root]#

DST AGAIN STARTS CORRECTLY ON OCT'2008
--------------------------------------

[root@a10-10-4-61 root]# date -s "01:59:55 October 05, 2008"
Sun Oct 5 01:59:55 CST 2008
[root@a10-10-4-61 root]# date
Sun Oct 5 01:59:59 CST 2008
[root@a10-10-4-61 root]# date
Sun Oct 5 03:00:00 CST 2008

For 2009, again DST is not ending correctly on April.
 
Old 10-11-2007, 05:15 PM   #6
georgewr3
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
A new timezonedb package was just released.

http://pecl.php.net/get/timezonedb

Try that.
 
Old 10-11-2007, 05:58 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Er ... move to Queensland, problem solved ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Release 9 and Daylight Savings Time (DST) hbloom Linux - General 10 10-07-2009 01:06 AM
DST Change and Slack 9.1 wczimmerman Slackware 4 02-22-2007 11:20 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 10:58 PM
modification time off 1 hour between linux and windows after DST adjustment pvlogin Linux - Software 3 11-01-2005 10:51 AM
Daytime Saving time. Cannot change time arubin Linux - General 9 11-06-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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