summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid-Wobrock <david.wobrock@gmail.com>2020-10-04 19:28:21 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-14 20:06:26 +0200
commitee005328c8eec5c013c6bf9d6fbb2ae9d540df14 (patch)
tree5d9641ee00639c05b815cbc26061744e039552d5 /docs
parent8d018231ac64c044c9740b79c0acf6d0abd7c513 (diff)
Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a specific timezone.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.2.txt4
1 files changed, 4 insertions, 0 deletions
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`
---------------------------