The time I get from the Date method is 1 hour ahead of the time set on my sun box. I am asumming this might have something to do with daylight savings. Does anyone know how I might fix this?
I would have imagined that java Date will pick up system time but this doesn't seem to be the case.
Thanks Dominique
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
Look into creating a custom TimeZone that doesn't recognize daylight savings time and setting it onto your dates. Haven't done this personally, but somebody over the wall said they did it. Let us know how it works out!
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
Dominique Ramoney
Greenhorn
Joined: Aug 11, 2004
Posts: 25
posted
0
Hi
I'm still not getting anywhere with this; I have tho discovered where the problem lies. Here is the outpur from a calendar instance;
This just gets rid of the daylight saving setting, of course the real solution would be to fix the daylight saving setting but I need to at least have one win today.