jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Daylight Saving TIme off by 1 Hour Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Daylight Saving TIme off by 1 Hour" Watch "Daylight Saving TIme off by 1 Hour" New topic

Daylight Saving TIme off by 1 Hour

Joe Botts

Joined: May 25, 2004
Posts: 1

There is a java aplication running on my windows XP professional client. It apparently uses one of the java functions to get the date from my client PC. The problem is that the time in the application is off by one hour.

I am in the eastern time zone with daylight savings time checked.

If I uncheck daylight savings time the application time is correct.

I am using the latest JRE which seems to include multiple version's of the java webstart which I can see in the registry.

Anybody come across this.

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Yes, our application showed an hour difference between what was on screen and what was in the database for the same reason. We gave our Date objects (Calendars?) a custom TimeZone with savings time turned off. If you didn't write this app, I don't know of anything you can do for it. Anyone else?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link: http://aspose.com/file-tools
subject: Daylight Saving TIme off by 1 Hour
It's not a secret anymore!