From ee005328c8eec5c013c6bf9d6fbb2ae9d540df14 Mon Sep 17 00:00:00 2001 From: David-Wobrock Date: Sun, 4 Oct 2020 19:28:21 +0200 Subject: Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a specific timezone. --- docs/releases/3.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index f4ef77e435..0c233f796b 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -458,6 +458,10 @@ backends. * ``DatabaseOperations.random_function_sql()`` is removed in favor of the new :class:`~django.db.models.functions.Random` database function. +* ``DatabaseOperations.date_trunc_sql()`` and + ``DatabaseOperations.time_trunc_sql()`` now take the optional ``tzname`` + argument in order to truncate in a specific timezone. + :mod:`django.contrib.admin` --------------------------- -- cgit v1.3