This content has been marked as final. Show 2 replies
One untested possibility that should be worth trying. Use ProcessBuilder to run a small Java program that returns it's timezone in stdout. Run this periodically from a Timer.
Check this related issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4216582
May not be the best way but one approach can be to write a C/C++ wrapper to make a system call to the OS to get the timezone information and call it using native method from your Java code. E.g. for Windows you use GetTimeZoneInformation function (http://msdn.microsoft.com/en-us/library/windows/desktop/ms724421%28v=vs.85%29.aspx)