mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Removed unnecessary microsecond truncation in SplitDateTimeWidget.
The microseconds are already truncated by the TimeInput subwidget.
This commit is contained in:
@@ -888,7 +888,7 @@ class SplitDateTimeWidget(MultiWidget):
|
||||
def decompress(self, value):
|
||||
if value:
|
||||
value = to_current_timezone(value)
|
||||
return [value.date(), value.time().replace(microsecond=0)]
|
||||
return [value.date(), value.time()]
|
||||
return [None, None]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user