Commit a98ee78b authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: do not add default timezone value if display only date

parent 58d5344b
...@@ -237,7 +237,9 @@ ...@@ -237,7 +237,9 @@
minute,\n minute,\n
value = input.value;\n value = input.value;\n
if (value !== "") {\n if (value !== "") {\n
value += "+0000";\n if (field_json.date_only === 0) {\n
value += "+0000";\n
}\n
value = new Date(value);\n value = new Date(value);\n
year = value.getUTCFullYear();\n year = value.getUTCFullYear();\n
month = value.getUTCMonth() + 1;\n month = value.getUTCMonth() + 1;\n
...@@ -491,7 +493,7 @@ ...@@ -491,7 +493,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -505,7 +507,7 @@ ...@@ -505,7 +507,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>941.11170.29635.26282</string> </value> <value> <string>941.29666.30820.17834</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -523,7 +525,7 @@ ...@@ -523,7 +525,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1424711511.37</float> <float>1425561983.22</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment