posted 13 years ago
I dont think you can do this in plain Java without any agent running in the remote system.
1. if the system is unix based, write a script (in the remote machine) which will return the time zone, and execute this script remotely using Java/SSH/SCP API.
2. same in windows, but instead of *.sh, you might want to look for a *.bat file or see if there are any MFC components that is available which can return the time zone.
3. if there is an SNMP agent running int he remote machine, you can try getting the data from the SNMP MIB as well (you might want to check out some SNMP libraries like the westhawk stack or snmp4j)
Hope this helps...