• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timezones

 
Adam Teg
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if my question qualifies as intermediate but here goes -

I want to get a time zone that will return CET or CEST. When I do the code below today I get CET but it should have given me CEST. What is up?

TimeZone.getTimeZone("Europe/Paris")

I want a time zone that knows if the time is CET or CEST

Thanks
 
Paul Clapham
Sheriff
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what way do you "get" CET from that code?
 
Adam Teg
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is actully working. My unit test had a winter date in it. Either way I get a calander instance; set the gmt timezone since that is timezone I am getting; do an offset with "Europe/Paris".

Thanks for your response
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic