org.zkoss.zk.moment.timezone.path"

From Documentation
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:
  
  
Start from 8.5.1, we start to use <code>moment.js, moment-timezone.js</code> to support our client widgets of <javadoc>org.zkoss.zul.Datebox</javadoc>,<javadoc>org.zkoss.zul.Timebox</javadoc>,<javadoc>org.zkoss.zkmax.zul.Timepicker</javadoc>.
+
We start to use [https://momentjs.com/ moment.js, moment-timezone.js] to support our client widgets of <javadoc>org.zkoss.zul.Datebox</javadoc>,<javadoc>org.zkoss.zul.Timebox</javadoc>,<javadoc>org.zkoss.zkmax.zul.Timepicker</javadoc>.
  
 
Since timezone information changes every year for some countries, we provide a way to update the timezone information.
 
Since timezone information changes every year for some countries, we provide a way to update the timezone information.
Line 24: Line 24:
 
</source>  
 
</source>  
  
=Version History=
+
= Check in a Browser =  
{{LastUpdated}}
+
To check which time zone data you loaded, open the browser developer tool, and search the following keyword in <code>zk.wpd</code>.
{| border='1px' | width="100%"
+
 
! Version !! Date !! Content
+
Check built-in time zone data:
|-
+
<syntaxhighlight lang="js">
| 8.5.1
+
loadData({
| January 2018
+
"version": "2023c",
| create
+
</syntaxhighlight>
|}
+
 
 +
Load external data by this property:
 +
<syntaxhighlight lang="js">
 +
var tzdata ={
 +
"version": "2023d",
 +
</syntaxhighlight>
 +
 
 +
 
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 07:53, 16 January 2024


org.zkoss.zk.moment.timezone.path


Property: org.zkoss.zk.moment.timezone.path

Since 8.5.1

Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png 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 the browser developer tool, and search the following keyword in zk.wpd.

Check built-in time zone data:

	loadData({
		"version": "2023c",

Load external data by this property:

var tzdata ={
	"version": "2023d",



Last Update : 2024/01/16

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.