Convert only non-empty datetime from client to UTC

issue3866
review5261002
This commit is contained in:
Cédric Krier committed 2014-04-24 18:04:47 +02:00
1 parent 1b96e14337
commit 0b98a41228
1 file changed
+2 -1
+2 -1
View File
@@ -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)