PDA

View Full Version : daylight savings patches



robsonde
05-09-2007, 12:09 PM
What with my job I have been doing a lot of work on daylight savings patches, so have decided to make my notes free to anyone who needs.


A quick guide to patching your OS for daylight savings.


windows (http://www.microsoft.com/nz/msdn/timezone/itpro.mspx)

for windows XP or vista there is a patch, this will be done by windows update and if you have automatic updates turned on then you wont have to do anything.
some NZ users have seen a daylight savings update come down last week.

this is all fine but what about if you dont run XP or vista.

for win9X, windows ME or windows 2000 you can use a tool called TZEDIT from microsoft.

or you can get a reg hack I made up:
Mirror #1: http://mirror.erayd.net/pressf1/robsonde/nzdt_update.zip
Mirror #2: http://www.imagef1.net.nz/downloads/nzdt_update.zip
Original host: www.theanswerguy.co.nz/nzdt_update.zip


but what if you dont run windows at all......





SUN solaris unix:
patches are out for solaris 8,9,10
for older version of solaris read the linux section.





HPUX unix:
there is an offical patch form HP but you can edit your own system easly.
the file to edit is /usr/lib/tztab
add a block like this:
# New Zealand Standard Time, New Zealand Daylight Time
#
NZST-12NZDT
0 3 25-31 10 1985-1988 0 NZDT-13
0 3 8 10 1989 0-6 NZDT-13
0 3 1-7 10 1990-2006 0 NZDT-13
0 3 24-30 9 2007-2038 0 NZDT-13
0 1 1-7 3 1985-1989 0 NZST-12
0 1 15-21 3 1990-2007 0 NZST-12
0 1 1-7 4 2008-2038 0 NZST-12



linux and BSD:
a number of linux distro's have a offical patch but you can often roll your own.....

source files can be found on the internet at http://www.twinsun.com/tz/tz-link.htm

you will need to find your timezone source files.
try /usr/share/lib/zoneinfo/src/

once you have found the location then update the australasia file and then run it through zic, and reboot system

zic /usr/share/lib/zoneinfo/src/australasia
reboot





apple MAC-OS:
I cant tell you much, I assume that apple have a patch, but apple have used a BSD base and so i expect the the linux instruction may work.
more infomation as it come to hand.



other things to think about


JAVA:
SUN have a timezone updater, look for the 2007f version.

PERL:
perl has timezone stuff and may need patching.

OUTLOOK & OFFICE:
there is also a patch from MS for newest versions of outlook and office.



any appliaction that asks about timezone during install may need looking at.

Jan Birkeland
05-09-2007, 12:30 PM
great post, Stickied :)

gibler
05-09-2007, 06:51 PM
I believe an OS X update 10.4.11 will have the changes. Probably they forgot about 10.3. I have no idea what is happening with apps like Entourage etc.

beeswax34
05-09-2007, 09:13 PM
Thank God for auto updates then:thumbs:

Safari
05-09-2007, 09:39 PM
What is the big deal with changing the time manually, it will have to be done on VCRs cellphones etc etc anyway.

heni72847
06-09-2007, 01:27 AM
my VCR still left in day light saving time..
..guess I should just leave it for a bit longer
who said you have to always have the right time :p

beeswax34
06-09-2007, 02:27 AM
This forum certainly doesn't keep the right time so I guess you're right heni:lol:

robsonde
06-09-2007, 11:33 AM
What is the big deal with changing the time manually, it will have to be done on VCRs cellphones etc etc anyway.

a good number of PC's are setup to time-sync from the internet and so change the time may not work, and you will have to change the time twice.
one on sunday 31st and again a week later once your system changes it too :-)

FoxyMX
06-09-2007, 12:46 PM
What is the big deal with changing the time manually, it will have to be done on VCRs cellphones etc etc anyway.

Some people don't realise daylight savings time has started (or ended) until they switch on their PCs. :p

Zoober
07-09-2007, 11:54 PM
I have just manualy updated my registry (Win 98se) for daylight saving by following the instructions at:

http://www.microsoft.com/nz/msdn/timezone/manual.mspx

Daylight start is shown as:
00,00,09,00,00,00,05,00,02,00,00,00,00,00,00,00
and it worked great (ie the clock jumped forward one hour)

Standard start is shown as:
00,00,04,00,00,00,01,00,03,00,00,00,00,00,00,00
but this did not work (ie the clock did not fall back one hour)

I had to modify it as follows to get it working properly.
00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

Any one else experience this problem?

zoob

robsonde
09-09-2007, 10:17 AM
I have just manualy updated my registry (Win 98se) for daylight saving by following the instructions at:

http://www.microsoft.com/nz/msdn/timezone/manual.mspx

Daylight start is shown as:
00,00,09,00,00,00,05,00,02,00,00,00,00,00,00,00
and it worked great (ie the clock jumped forward one hour)

Standard start is shown as:
00,00,04,00,00,00,01,00,03,00,00,00,00,00,00,00
but this did not work (ie the clock did not fall back one hour)

I had to modify it as follows to get it working properly.
00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

Any one else experience this problem?

zoob


I recomend that you use my reg hack.
Original host: www.theanswerguy.co.nz/nzdt_update.zip

to testing any timezone patches in any OS you should set you system clock to Sunday morning 31th sept, set time to 1:50am and then wait for 10 minutes.
setting you clock to 2am can have unexpected results, in most OSes it will result in the time not changing or jumping to a somewhat random time, in some cases i have seen a kernel panic.

Zoober
09-09-2007, 03:09 PM
The Microsoft page suggests testing that old settings no longer work as well as testing that the new ones do. No need to wait for 10 minutes each test though. Set your clock to 1:59:58 am and watch it tick over.

1. Change the date/clock to September 30, 2007, 1:59am and verify that the clock advances one hour (instead of moving to 2am it moves to 3am). This is the new (2007) DST start date.
2. Change the date/clock to October 7, 2007 at 1:59am and verify that the clock does not adjust for DST (Simply moves to 2am). This is the old 2007 DST start date.
3. Change the date/clock to March 16, 2008 at 1:59am and verify that the clock does not adjust for DST (Simply moves to 2am). This is the old 2008 DST end date.
4. Change the date/clock to April 6, 2008 at 2:59am and verify that the clock goes back one hour to 2:00am (instead of 3am). This is the new (2008) DST end date.

Mine seems to work ok.

JSF_enthusiast
11-09-2007, 10:25 AM
I believe an OS X update 10.4.11 will have the changes. Probably they forgot about 10.3. I have no idea what is happening with apps like Entourage etc.

Fact: If your on old version of apples software they couldn't care less about you.

Robin S_
15-09-2007, 12:03 AM
In the link posted by Zoober -

=http://www.microsoft.com/nz/msdn/timezone/manual.mspx

for those using Tzedit.exe (which works well) one of the instructions is wrong. Line 7h should read -
In the fourth Last Day box, click 2:00 AM
The original shows 3.00AM but this is incorrect! This is probably the same basic problem that Zoober encountered. Apparently the M$ people thought that NZ daylight saving ended at 3am.

Incidently, the version of Tzedit.exe currently available as a free download from M$ begets another file called Tzedit.exe (don't you love that filename duplication?) which doesn't work with Win 98SE - use the one on the 98SE CD in the Tools\Reskit\Config folder.

Robsonde - do you realy mean Sunday September 31st?

robsonde
15-09-2007, 07:15 PM
Robsonde - do you realy mean Sunday September 31st?

yep 31st

Robin S_
16-09-2007, 12:27 AM
yep 31st

Intriguing! Please explain.

Should this be done in addition to the 4 date/time combinations from the M$ site as posted by Zoober? If not, should similar corrections be made to those combinations?

robsonde
16-09-2007, 07:16 PM
yep 31st

sorry, yesterday was a long day....


there is no 31st this month :-)
sunday is the 30th and 2am is the time of daylight savings.

I dont expect you to create a extra day just because i said it should be so......

Robin S_
22-09-2007, 10:55 PM
Correction! Correction!

In my post of 14/9 I said that the M$ instruction to set the end time for
DST as 3am was wrong - it isn't. My understanding was always that DST ended at 2am and when I saw those instructions I thought they were wrong. Before doing anything else, however, I wanted to check it out and did a NZ search and found a webpage somewhere (can't remember where) that "confirmed" 2am. When I later came across this thread I posted accordingly, especially in light of Zoober's post about having to change a 3 to a 2 in the Registry settings from M$. Last Monday I rang Microsoft NZ and pointed out their "error", but when I checked out their web page this morning they hadn't made any changes. I have just done another NZ search and found this page - [URL="http://www.bdm.govt.nz/diawebsite.nsf/wpg_URL/Services-Daylight-Saving-Daylight-saving-to-be-extended?OpenDocument"/URL]
which says the ending time is 3am. This must be right because it is from the Guvmint.
Hence my post gave incorrect information. Sorry 'bout that. What does surprise me is that no one picked me up on it.

(Creeps off to hide).

Morpheus1
23-09-2007, 08:48 AM
or you can get a reg hack I made up:
Mirror #1: http://mirror.erayd.net/pressf1/robsonde/nzdt_update.zip
Mirror #2: http://www.imagef1.net.nz/downloads/nzdt_update.zip
Original host: www.theanswerguy.co.nz/nzdt_update.zip



Rob, with your reg hack work for WinXP ?
From your post, I am not sure if your reg hack applies to this statement: "this is all fine but what about if you dont run XP or vista."

I ask because I do not have SP2 (and will not install it). I went to the Windows Update page but the options for updates did not include DST changes.

Speedy Gonzales
23-09-2007, 09:39 AM
I dont think so, since MS have issued a DST update for XP.

You could try it, you'll soon find out if it installs without SP2 (even tho it says you need it).

Here (http://www.microsoft.com/downloads/details.aspx?FamilyId=90D23E85-0DE2-4588-9D8A-41C52F636ED5&displaylang=en)

Or just change whats in the registry to whats here (http://support.microsoft.com/?kbid=933360)

robsonde
23-09-2007, 08:30 PM
Rob, with your reg hack work for WinXP ?
From your post, I am not sure if your reg hack applies to this statement: "this is all fine but what about if you dont run XP or vista."

I ask because I do not have SP2 (and will not install it). I went to the Windows Update page but the options for updates did not include DST changes.

yes my code will run on XP, 99% of XP users should have received to update from MS automagicly a few weeks ago.

Robin S_
23-09-2007, 10:40 PM
I have not looked at Robsonde's fix but the Timezone Edit method give at - [URL="http://www.microsoft.com/nz/...ne/manual.mspx"/URL] is much quicker and easier to use than the M$ Registry modification one referred to by Speedy.

Morpheus1
24-09-2007, 07:05 AM
I have not looked at Robsonde's fix but the Timezone Edit method give at - [URL="http://www.microsoft.com/nz/...ne/manual.mspx"/URL] is much quicker and easier to use than the M$ Registry modification one referred to by Speedy.

Robin, that page gives this: "We’re sorry, but we were unable to service your request. You may wish to choose from the links below for information about Microsoft products and services."

Morpheus1
24-09-2007, 07:14 AM
Speedy - thanks. Dunno if it installed or not - it said it needs SP2 to apply the hotfix but something did download and extract so I guess I could temporarily change my pc's clock-date setting and see what happens....?

That MS page with registry changes is very detailed and looks too complicated for me to digest now so I'll try Rob's patch if needed.

Morpheus1
24-09-2007, 07:27 AM
yes my code will run on XP, 99% of XP users should have received to update from MS automagicly a few weeks ago.

Thanks Rob. It downloaded, unzipped and looks to have installed OK. :thumbs:

Robin S_
25-09-2007, 12:29 AM
Morpheus - pleased to see you have a fix.

When I tried to paste the link into my last post using the create link button it got a bit garbaged - the first URL in the link command got changed to lower case, but when I went to edit the post it still showed as upper case so I couldn't change it. I will try again.

http://microsoft.com/nz/msdn/timezone/manual.mspx

robsonde
25-09-2007, 12:07 PM
and infomation colected from another thread.....

cellphones
vodafone cellphones may be affected read more at the link
http://www.vodafone.co.nz/business/help/daylight-saving-changes.jsp

it is expected that telecom phones will not be affected as they get time from the network, as long as the telecom servers are on the new time then you should be good.

other household stuff that may be affected includeds......

some clocks that automaticly change for daylight savings may get it wrong.

SKY decoders should pickup time from SKY.

a good number of VCR's may need a maunal change.

Chilling_Silence
26-09-2007, 03:12 AM
Windows Mobile 6 Cellphones on the Vodafone network ?

Nermal
26-09-2007, 04:13 PM
I believe an OS X update 10.4.11 will have the changes. Probably they forgot about 10.3. I have no idea what is happening with apps like Entourage etc.

Entourage 11.3.7 includes new DST rules.

Muaz
27-09-2007, 10:33 PM
[edit: spam removed]

Muaz
27-09-2007, 10:34 PM
[edit: spam removed]

Speedy Gonzales
27-09-2007, 10:40 PM
What post?

I didnt see anything in it, thats useful for anyone.

Jen
27-09-2007, 10:46 PM
What post?

I didnt see anything in it, thats useful for anyone.Not too worry about it. It is what the spammers have been posting everywhere, from a stock phrase. I've removed over 5 identical posts recently. Some spammers are just soooo thick.

pctek
01-10-2007, 09:30 AM
Well the patch given here did not work on my PC. Nor did MSs reg edit.

paulw
01-10-2007, 09:52 AM
Well the patch given here did not work on my PC. Nor did MSs reg edit.

Same here on my win2K boxes. But if I changed to a different time zone and then back again the time updated..

Robin S_
01-10-2007, 11:32 PM
For anyone one using tzedit.exe to make DST changes it is necessary, after making the changes with the utility, to save them by going to Control Panel, Date and Time, and clicking the Apply button (this seems to be what does the actual saving). If no changes have been made in the Date and Time boxes, the Apply button remains greyed out. To activate it, I unchecked the Automatically Change dialogue box and then ticked it again - as far as I recall, unchecking activated the button and there was no need to do an intermediate save before reticking it.

The same save procedure may be necessary after editing the registry.

HTH.

zqwerty
01-10-2007, 11:58 PM
Yes Robin S, you are right, my computer is now on DST.

myke
04-10-2007, 12:50 AM
The Apple based network that I oversee is happily ticking away an hour behind. On Monday the Apple computers will all catch up to the Windows machines that were updated.
It hasn't been a problem yet, cause everybody is away on school holidays.
I suppose the computers will all get along nicely.

razzarphenix
04-10-2007, 06:35 PM
Hey Guys, didnt see it posted (apologies if it has been) but for any NT based version of windows (nt4, win2k, xp, 2k3 etc..) you can use this tool from intelliadmin: http://www.intelliadmin.com/Downloads.htm run the exe and it will work out the OS and patch appropriately :)

Chilling_Silence
05-10-2007, 08:56 AM
Any ideas about a patch for WindowsMobile 6? When my phone sync's with my desktop it totally throws all my appointments etc :(

MRMuaz
05-10-2007, 11:03 PM
[edit: spam and advertising signature links removed]

DUNK
05-10-2007, 11:17 PM
Hi, This post of mine is very knowledgable and may enhance the information of the viewers , however I would like some specific information for myself. If someone can help me then please send me a private message. Best Regards,

SPAM ALERT !!! :2cents:

razzarphenix
07-10-2007, 09:18 PM
Any ideas about a patch for WindowsMobile 6? When my phone sync's with my desktop it totally throws all my appointments etc :(

Hey Joe,

have you already tried this patch for windows mobile? http://support.microsoft.com/kb/941898/