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.StringgetClientTimeZoneDataBaseVersion()Returns client timezone database version.voidinit(WebApp wapp)Called when a ZK application is created and initialized.
-
-
-
Method Detail
-
init
public void init(WebApp wapp) throws java.lang.Exception
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:
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.
-
-