Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Detecting System Time Zone

SreramFeb 13 2013 — edited Feb 13 2013
This is in continuation with the following thread.

2064862

I have java code running on a server. When the user changes the timezone in the System (say in Windows Control Panel), I had to automatically detect it and send it to the users. If i try to get the timezone via calendar.getTimezone() or TimeZone.getDefault(), I get the timezone information while the java code is started. I don't find a reliable way to get the timezone from the system control panel.

Is there any method to get the System Timezone in Java?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2013
Added on Feb 13 2013
2 comments
558 views