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

Fixed #20663 -- "Today" and "now" admin shortcuts.

Changed the shortcuts next to date and time intput widgets
to account for the current timezone.

Refs #7717, #14253 and #18768.
This commit is contained in:
Loic Bistuer
2013-07-01 21:48:14 +07:00
committed by Aymeric Augustin
parent 404870ee1f
commit 7e6d852bac
4 changed files with 150 additions and 10 deletions

View File

@@ -17,6 +17,19 @@ deprecation process for some features`_.
What's new in Django 1.7
========================
Admin shortcuts support time zones
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The "today" and "now" shortcuts next to date and time input widgets in the
admin are now operating in the :ref:`current time zone
<default-current-time-zone>`. Previously, they used the browser time zone,
which could result in saving the wrong value when it didn't match the current
time zone on the server.
In addition, the widgets now display a help message when the browser and
server time zone are different, to clarify how the value inserted in the field
will be interpreted.
Backwards incompatible changes in 1.7
=====================================