Class TimeZoneDataBaseVersionChecker

java.lang.Object
org.zkoss.zk.au.http.TimeZoneDataBaseVersionChecker
All Implemented Interfaces:
WebAppInit

public class TimeZoneDataBaseVersionChecker extends 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 Details

    • TimeZoneDataBaseVersionChecker

      public TimeZoneDataBaseVersionChecker()
  • Method Details

    • init

      public void init(WebApp wapp) throws 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:
      Exception
    • getClientTimeZoneDataBaseVersion

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

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