com.atlassian.bitbucket.timezone.UserTimeZoneSupplier |
Known Indirect Subclasses
|
Class Overview
Provides access to a user's time zone.
Public Methods
@Nonnull
public
ZoneId
getTimeZone
()
Returns
- the time zone for the current user. Always returns a time zone. Will fall back to a default time zone
if necessary.
@Nonnull
public
ZoneId
getTimeZone
(ApplicationUser user)
Parameters
user
| the user for which to find the time zone. Can be null for the anonymous user. |
Returns
- the time zone for the passed user. Always returns a time zone. Will fall back to a default time zone
if necessary.