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:
committed by
Mariusz Felisiak
parent
76e0151ea0
commit
9d5d865fd6
@@ -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
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user