Package org.zkoss.zk.au.http
Class TimeZoneDataBaseVersionChecker
java.lang.Object
org.zkoss.zk.au.http.TimeZoneDataBaseVersionChecker
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns client timezone database version.voidCalled when a ZK application is created and initialized.
-
Constructor Details
-
TimeZoneDataBaseVersionChecker
public TimeZoneDataBaseVersionChecker()
-
-
Method Details
-
init
Description copied from interface:WebAppInitCalled when a ZK application is created and initialized.You could retrieve the servlet context by
WebApp.getServletContext()- Specified by:
initin interfaceWebAppInit- Throws:
Exception
-
getClientTimeZoneDataBaseVersion
Returns client timezone database version.If didn't provide a customized tzdb data, returns the jar build-in timezone data version.
-