Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time zone problem in date format

 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this to Java in General - Intermediate.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a bug that has been fixed and closed.
See:
http://developer.java.sun.com/developer/bugParade/bugs/4256581.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic