Forums Register Login

Time zone problem in date format

+Pie Number of slices to send: Send
Why does the following code produces different output on solaris with time zone set to 'TZ=Canada/Mountain':
When run in JDK 1.2.2
Date: Wed, 09 Jul 2003 13:06:44 GMT-06:00
and in 1.3.1_02
Date: Wed, 09 Jul 2003 12:06:25 MDT
Here's the code:

[ July 09, 2003: Message edited by: Bhupinder Dhillon ]
+Pie Number of slices to send: Send
I'm going to move this to Java in General - Intermediate.
+Pie Number of slices to send: Send
It is a bug that has been fixed and closed.
See:
http://developer.java.sun.com/developer/bugParade/bugs/4256581.html
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 872 times.
Similar Threads
Time Zone Z associated with date
plz help with Calendar doubt.. ;-)
Date printed in IST format when EDT format required
Can't parse dates with full zone name
Comparing two dates
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:23:33.