Calendar differences between timezones
I notice some differences when running the piece of code below in different timezones. When I run by default I get following output:
Wed Apr 06 16:41:27 CEST 2011
When I change my timezone to -Duser.timezone=Asia/Jerusalem and run again, I get:
Wed Apr 06 16:50:48 IDT 2011
I would expect to perhaps get 1 hour difference since CEST is UTC+2 and IDT is UTC+3, but I do not understand why I get 9 minutes 21 seconds difference?
Both runs happen on the same machine with the same JDK (1.6.0_21).
Any ideas that could help me on my way?
Calendar c = Calendar.getInstance();
Date date = c.getTime();