From: Dr J R Stockton on
In comp.lang.java.programmer message <ho33sk$h1p$1(a)news.albasani.net>,
Sat, 20 Mar 2010 14:24:18, Lew <noone(a)lewscanon.com> posted:
>Rhino wrote:
>> I clicked on the Windows clock icon and found that the time is
>>already set to 1:37 PM; the date is already correct. The timezone is
>>already set to GMT
>
>So are we to conclude, as you have not stated it, that the time you
>checked was actually 1:37 p.m. Eastern Daylight, and that you are in
>the Eastern time zone?
>
>> -5:00 Eastern Time, Canada and US. The observe daylight saving time
>>box is
>
>That is not correct, if you are in the Eastern Time Zone and DST is in
>effect. If you are in the Eastern Time Zone and DST is in effect, you
>are at GMT-04:00.

-5:00 is a correct label for the zone containing Ottawa. Time Zones
govern winter Time, and do not change seasonally. An extra hour or so
may be added for Summer Time.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
From: sgmentzer on
On Mar 18, 8:34 pm, Rhino <no.offline.contact.ple...(a)example.com>
wrote:
> I'm just retesting some date/time methods I wrote a while back and
> noticed something odd. It's 8 PM Eastern time as I write this and the
> date routines I have just retested tell me that it's actually 9 PM. Why
> would that be?

I just happened to install Windows XP Pro and SP3 on an old laptop to
run a Java app and noticed this problem too.

It's an issue with XP. The US Daylight Savings Time begin/edit dates
are pre-2007. At the bottom of the Adjust Date dialog it shows the
current timezone, which should be Eastern Daylight Time, but instead
shows Eastern Standard Time.

I don't know why the latest service pack didn't update the timezone
data, but here we are. Microsoft offers a timezone editing tool to fix
it yourself:

http://download.microsoft.com/download/5/8/a/58a208b7-7dc7-4bc7-8357-28e29cdac52f/tzedit.exe

US DST rule is here http://wwp.greenwichmeantime.com/time-zone/rules/usa.htm

Note: I had to click Update Now on the Internet Time tab of the clock
dialog to force this change (even after reboot). Maybe just changing
the time would have worked too, or maybe I was impatient and it would
have made the correction on its own.

Steve

From: Rhino on
On Mar 22, 11:45 pm, sgmentzer <sgment...(a)gmail.com> wrote:
> On Mar 18, 8:34 pm, Rhino <no.offline.contact.ple...(a)example.com>
> wrote:
>
> > I'm just retesting some date/time methods I wrote a while back and
> > noticed something odd. It's 8 PM Eastern time as I write this and the
> > date routines I have just retested tell me that it's actually 9 PM. Why
> > would that be?
>
> I just happened to install Windows XP Pro and SP3 on an old laptop to
> run a Java app and noticed this problem too.
>
> It's an issue with XP. The US Daylight Savings Time begin/edit dates
> are pre-2007. At the bottom of the Adjust Date dialog it shows the
> current timezone, which should be Eastern Daylight Time, but instead
> shows Eastern Standard Time.
>
> I don't know why the latest service pack didn't update the timezone
> data, but here we are. Microsoft offers a timezone editing tool to fix
> it yourself:
>
> http://download.microsoft.com/download/5/8/a/58a208b7-7dc7-4bc7-8357-...
>
> US DST rule is herehttp://wwp.greenwichmeantime.com/time-zone/rules/usa.htm
>
> Note: I had to click Update Now on the Internet Time tab of the clock
> dialog to force this change (even after reboot). Maybe just changing
> the time would have worked too, or maybe I was impatient and it would
> have made the correction on its own.
>
> Steve

You've nailed it Steve! I ran the program you suggested, TZEdit, and
adjusted the start and end dates for EST appropriately and now my OS
shows the correct time AND Java is displaying the correct hour too!

Many thanks!!!!

All's well that ends well: I have the time problem sorted out and I've
learned several useful things about Java that I've been able to
incorporate into my Java code.

Thanks again to all who participated in this thread.
--
Rhino