When I do:
new Date();
Year, day and other things are OK but hour and minute is wrong. I use 64 bit Windows 7 at my computer and:
Windows time is OK,
Bios Time is OK,
Windows Time Zone is OK,
Windows Time Zone at Regedit is OK
However when I check date object at Java (I use Java 1.6) id of zone info is America/Caracas which should be Europe/Istanbul
What can be the problem, any ideas?
PS: I don’t want to pass time zone as VM parameter, I don’t want to use a Calendar object cos I have some libraries that uses Date object instead of anything, I just want to learn the problem.
I think this blog can help you.
Quote from the blog post to solve the issue:
For the records and from the same blog: