public class

NoDatabaseTimeZoneResolver

extends Object
implements TimeZoneResolver
java.lang.Object
   ↳ com.atlassian.jira.timezone.NoDatabaseTimeZoneResolver

Class Overview

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.

Summary

Public Constructors
NoDatabaseTimeZoneResolver()
Public Methods
TimeZone getDefaultTimeZone(JiraServiceContext serviceContext)
Returns the system default time zone.
TimeZone getUserTimeZone(JiraServiceContext serviceContext)
Returns the system default time zone.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.timezone.TimeZoneResolver

Public Constructors

public NoDatabaseTimeZoneResolver ()

Public Methods

public TimeZone getDefaultTimeZone (JiraServiceContext serviceContext)

Returns the system default time zone.

Parameters
serviceContext a JiraServiceContext
Returns
  • a TimeZone

public TimeZone getUserTimeZone (JiraServiceContext serviceContext)

Returns the system default time zone.

Parameters
serviceContext a JiraServiceContext
Returns
  • a TimeZone