public class ConfluenceTimeZoneManager extends Object implements com.atlassian.sal.api.timezone.TimeZoneManager
Constructor and Description |
---|
ConfluenceTimeZoneManager(UserAccessor userAccessor,
SettingsManager settingsManager,
TenantRegistry tenantRegistry) |
Modifier and Type | Method and Description |
---|---|
@NonNull TimeZone |
getDefaultTimeZone()
This implementation will lookup the default timezone for the current tenant in SettingsManager, falling back to
JDK default Timezone.
|
@NonNull TimeZone |
getUserTimeZone() |
@NonNull TimeZone |
getUserTimeZone(@NonNull com.atlassian.sal.api.user.UserKey userKey) |
public ConfluenceTimeZoneManager(UserAccessor userAccessor, SettingsManager settingsManager, TenantRegistry tenantRegistry)
public @NonNull TimeZone getUserTimeZone()
getUserTimeZone
in interface com.atlassian.sal.api.timezone.TimeZoneManager
public @NonNull TimeZone getUserTimeZone(@NonNull com.atlassian.sal.api.user.UserKey userKey)
getUserTimeZone
in interface com.atlassian.sal.api.timezone.TimeZoneManager
public @NonNull TimeZone getDefaultTimeZone()
getDefaultTimeZone
in interface com.atlassian.sal.api.timezone.TimeZoneManager
Copyright © 2003–2021 Atlassian. All rights reserved.