Interface UserTimeZoneSupplier

All Known Subinterfaces:
TimeZoneService

public interface UserTimeZoneSupplier
Provides access to a user's time zone.
Since:
4.6
  • Method Details

    • getTimeZone

      @Nonnull 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.
    • getTimeZone

      @Nonnull ZoneId getTimeZone(@Nullable 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.