1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31948 -- Added tzinfo parameter to TruncDate() and TruncTime().

This commit is contained in:
Joe Jackson
2020-08-29 14:40:54 -04:00
committed by Mariusz Felisiak
parent 76e0151ea0
commit 9d5d865fd6
5 changed files with 28 additions and 4 deletions

View File

@@ -290,6 +290,11 @@ Models
distinct fields if there's only one field specified in
:meth:`.QuerySet.distinct`.
* The new ``tzinfo`` parameter of the
:class:`~django.db.models.functions.TruncDate` and
:class:`~django.db.models.functions.TruncTime` database functions allows
truncating datetimes in a specific timezone.
Pagination
~~~~~~~~~~