1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #30819 -- Fixed year determination in admin calendar widget for two-digit years.

Two-digit years in the range of [00, 68] are in the current century,
while [69,99] are in the previous century, according to the Open Group
Specification.
This commit is contained in:
Farhaan Bukhsh
2019-10-11 23:33:29 +07:00
committed by Mariusz Felisiak
parent 550357771b
commit cf5d4701dc
4 changed files with 20 additions and 1 deletions

View File

@@ -391,6 +391,10 @@ Miscellaneous
options on models in ``django.contrib`` modules that were formerly tuples are
now lists.
* The admin calendar widget now handles two-digit years according to the Open
Group Specification, i.e. values between 69 and 99 are mapped to the previous
century, and values between 0 and 68 are mapped to the current century.
.. _deprecated-features-3.1:
Features deprecated in 3.1