Package org.apache.openmeetings.db.util
Class TimezoneUtil
java.lang.Object
org.apache.openmeetings.db.util.TimezoneUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeZone
getTimeZone
(String timeZoneId) static TimeZone
getTimeZone
(User user) Returns the timezone based on the user profile, if not return the timezone from the server
-
Method Details
-
getTimeZone
- Parameters:
timeZoneId
- the ID for a TimeZone, either an abbreviation such as "PST", a full name such as "America/Los_Angeles", or a custom ID such as "GMT-8:00". Note that the support of abbreviations is for JDK 1.1.x compatibility only and full names should be used.- Returns:
- the specified TimeZone, or the GMT zone if the given ID cannot be understood.
-
getTimeZone
Returns the timezone based on the user profile, if not return the timezone from the server- Parameters:
user
- to get timezone for- Returns:
TimeZone
of given user
-