Package org.zkoss.zk.au.http

## Class TimeZoneDataBaseVersionChecker

- java.lang.Object
- - org.zkoss.zk.au.http.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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `TimeZoneDataBaseVersionChecker()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static java.lang.String` | `getClientTimeZoneDataBaseVersion()` | Returns client timezone database version.
    `void` | `init​(WebApp wapp)` | Called when a ZK application is created and initialized.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.