Commit fd26a2cf authored by Xiaowu Zhang's avatar Xiaowu Zhang

DateTimeValidator: don't check timezone if only display date

parent 44159fd4
......@@ -806,7 +806,7 @@ class DateTimeValidator(Validator):
# handle possible timezone input
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)
try:
......
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