Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Binh
erp5
Commits
a98ee78b
Commit
a98ee78b
authored
10 years ago
by
Xiaowu Zhang
Browse files
Options
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: do not add default timezone value if display only date
parent
58d5344b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
...Item/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
+6
-4
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
View file @
a98ee78b
...
@@ -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>
142
4711511.37
</float>
<float>
142
5561983.22
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment