Package io.jmix.core

Interface HasTimeZone

All Known Implementing Classes:
User

public interface HasTimeZone
Provides user time zone information. If User entity implements HasTimeZone, CurrentAuthentication.getTimeZone() should use timezone from a User entity for all datetime operations.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default boolean
     
  • Method Details

    • getTimeZoneId

      @Nullable String getTimeZoneId()
      Returns:
      time zone id of the user
    • isAutoTimeZone

      default boolean isAutoTimeZone()
      Returns:
      whether to use the auto-detected time zone (e.g. browser's time zone) if the user's time zone is not explicitly set