org.zkoss.zk.moment.timezone.path"
From Documentation
Line 23: | Line 23: | ||
</library-property> | </library-property> | ||
</source> | </source> | ||
+ | |||
+ | = Check in a Browser = | ||
+ | To check which time zone data you loaded, open browser developer tool, search the follow keyword in <code>zk.wpd</code>. | ||
+ | <syntaxhighlight lang="js"> | ||
+ | var tzdata ={ | ||
+ | "version": "2023d", | ||
+ | </syntaxhighlight> | ||
{{ZKConfigurationReferencePageFooter}} | {{ZKConfigurationReferencePageFooter}} |
Revision as of 03:18, 5 January 2024
Property:
org.zkoss.zk.moment.timezone.path
Since 8.5.1
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: empty (default data would be loaded)
We start to use moment.js, moment-timezone.js to support our client widgets of Datebox,Timebox,Timepicker.
Since timezone information changes every year for some countries, we provide a way to update the timezone information.
1. Download the json file from https://github.com/moment/moment-timezone/tree/develop/data/packed.
2. In zk.xml, specify file.
<library-property>
<name>org.zkoss.zk.moment.timezone.path</name>
<value>/data/2017a.json</value>
</library-property>
Check in a Browser
To check which time zone data you loaded, open browser developer tool, search the follow keyword in zk.wpd
.
var tzdata ={
"version": "2023d",