Convert only non-empty datetime from client to UTC
issue3866 review5261002
This commit is contained in:
1 parent
1b96e14337
commit
0b98a41228
1 file changed
+2
-1
@@ -207,7 +207,8 @@ class DateTimeField(Field):
|
||||
date_format() + ' ' + self.time_format(record))[:6])
|
||||
except ValueError:
|
||||
value = self._default
|
||||
value = common.untimezoned_date(value)
|
||||
if value:
|
||||
value = common.untimezoned_date(value)
|
||||
super(DateTimeField, self).set_client(record, value,
|
||||
force_change=force_change)
|
||||
|
||||
|
||||
Reference in new issue
Block a user