Package com.atlassian.jira.timezone
Class NoDatabaseTimeZoneResolver
java.lang.Object
com.atlassian.jira.timezone.NoDatabaseTimeZoneResolver
- All Implemented Interfaces:
TimeZoneResolver
Time zone resolver used during the bootstrap process. Because there is no database access at this point, this
resolver is not able to look up the time zone that each user has configured. Therefore, it always returns the system
time zone.
- Since:
- v5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultTimeZone
(JiraServiceContext serviceContext) Returns the system default time zone.getUserTimeZone
(JiraServiceContext serviceContext) Returns the system default time zone.
-
Constructor Details
-
NoDatabaseTimeZoneResolver
public NoDatabaseTimeZoneResolver()
-
-
Method Details
-
getDefaultTimeZone
Returns the system default time zone.- Specified by:
getDefaultTimeZone
in interfaceTimeZoneResolver
- Parameters:
serviceContext
- a JiraServiceContext- Returns:
- a TimeZone
- See Also:
-
getUserTimeZone
Returns the system default time zone.- Specified by:
getUserTimeZone
in interfaceTimeZoneResolver
- Parameters:
serviceContext
- a JiraServiceContext- Returns:
- a TimeZone
- See Also:
-