summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-18 08:23:06 -0800
committerTim Graham <timograham@gmail.com>2018-01-18 11:23:06 -0500
commit90ca9412e4d2f0b543938a1fa3fbc43c2c7ac57f (patch)
tree1d4ace8e4d777d4271e48c55739608b3ebd8f778 /django/forms
parent3c34452ab5e5de816357aee99cd2a98a0c7c4e50 (diff)
Removed unnecessary microsecond truncation in SplitDateTimeWidget.
The microseconds are already truncated by the TimeInput subwidget.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 27ac88b852..8ccf939acd 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -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]