diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 27ac88b8528..8ccf939acdc 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] diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 7e43e3d3547..12677eb9089 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -359,7 +359,7 @@ foundation for custom widgets. def decompress(self, value): if value: - return [value.date(), value.time().replace(microsecond=0)] + return [value.date(), value.time()] return [None, None] .. tip::