public interface

UserTimeZoneSupplier

com.atlassian.bitbucket.timezone.UserTimeZoneSupplier
Known Indirect Subclasses

Class Overview

Provides access to a user's time zone.

Summary

Public Methods
@Nonnull ZoneId getTimeZone()
@Nonnull ZoneId getTimeZone(ApplicationUser user)

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.