Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matevz Golob
erp5
Commits
fd26a2cf
Commit
fd26a2cf
authored
Apr 08, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DateTimeValidator: don't check timezone if only display date
parent
44159fd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/Formulator/Validator.py
product/Formulator/Validator.py
+1
-1
No files found.
product/Formulator/Validator.py
View file @
fd26a2cf
...
@@ -806,7 +806,7 @@ class DateTimeValidator(Validator):
...
@@ -806,7 +806,7 @@ class DateTimeValidator(Validator):
# handle possible timezone input
# handle possible timezone input
timezone
=
''
timezone
=
''
if
field
.
get_value
(
'timezone_style'
):
if
(
not
field
.
get_value
(
'date_only'
))
and
field
.
get_value
(
'timezone_style'
):
timezone
=
self
.
validate_sub_field
(
field
,
key
,
'timezone'
,
REQUEST
)
timezone
=
self
.
validate_sub_field
(
field
,
key
,
'timezone'
,
REQUEST
)
try
:
try
:
...
...
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