ObjectDB ObjectDB

setServerTimeZoneID(timezoneid) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
void setServerTimeZoneID(
  String timezoneid
)

Sets the TimeZone ID of the server associated with this PersistenceManagerFactory. The parameter is a String suitable for use with TimeZone.getTimeZone(). The String must match an ID returned by TimeZone.getAvailableIDs(). If the ServerTimeZoneID is not set, or set to the null String, assume that the server has the same TimeZone ID as the client. If incorrectly set, the result of PersistenceManager.getServerDate() might be incorrect.
Parameters:
timezoneid - the TimeZone ID of the server
Throws:
JDOUserException - if the parameter does not match an ID from TimeZone.getAvailableIDs()
Since:
JDO 2.1
See Also:
getServerTimeZoneID()
java.util.TimeZone.getTimeZone(String)
java.util.TimeZone.getAvailableIDs()
PersistenceManager.getServerDate()