Class TimeZoneManager

java.lang.Object
hu.rts.mike.example.dev.crm.session.TimeZoneManager
All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener, Serializable, EventListener

@SpringComponent public class TimeZoneManager extends Object implements com.vaadin.flow.server.VaadinServiceInitListener
The TimeZoneManager stores the timezone offset for UI scope and helps to translate between the backend-side Instant type and the frontend-side LocalDateTime type. Callers must ensure that all the calls are made from the UI thread to avoid NullPointerException.
See Also:
  • Field Details

  • Constructor Details

    • TimeZoneManager

      public TimeZoneManager()
  • Method Details

    • serviceInit

      public void serviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
      Specified by:
      serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener
    • initTimeZone

      public static void initTimeZone(com.vaadin.flow.component.UI ui)