Class TimeZoneDataBaseVersionChecker

  • All Implemented Interfaces:
    WebAppInit

    public class TimeZoneDataBaseVersionChecker
    extends java.lang.Object
    implements WebAppInit
    Utilities to check whether JDK and moment.js's time zone database version matched.
    Since:
    10.3.0
    Author:
    Jamson Chan
    • Constructor Detail

      • TimeZoneDataBaseVersionChecker

        public TimeZoneDataBaseVersionChecker()
    • Method Detail

      • init

        public void init​(WebApp wapp)
                  throws java.lang.Exception
        Description copied from interface: WebAppInit
        Called when a ZK application is created and initialized.

        You could retrieve the servlet context by WebApp.getServletContext()

        Specified by:
        init in interface WebAppInit
        Throws:
        java.lang.Exception
      • getClientTimeZoneDataBaseVersion

        public static java.lang.String getClientTimeZoneDataBaseVersion()
        Returns client timezone database version.

        If didn't provide a customized tzdb data, returns the jar build-in timezone data version.