| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2025-07-23 | Refs #36500 -- Shortened some long docstrings and comments. | Mike Edmunds | |
| Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes. | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-01-18 | Refs #34233 -- Referenced isocalendar() results by names not indexes. | Mariusz Felisiak | |
| isocalendar() returns a namedtuple() instead of tuple in Python 3.9+ | |||
| 2023-01-05 | Simplified handling ambiguous/imaginary datetimes in django.utils.dateformat. | Nick Pope | |
| Instead of the separate property, we can just not set self.timezone if the datetime is ambiguous or imaginary. This ensures that this check will only ever happen once as it's dependant on the datetime object and not the format string characters. | |||
| 2023-01-05 | Added support for datetime.date to DateFormat.r(). | Nick Pope | |
| 2023-01-05 | Simplified django.utils.dateformat.DateFormat.O()/t()/e() a bit. | Nick Pope | |
| O() - we should try to avoid calling specifier methods from each other to avoid extra function call overhead. In addition we end up, in this case, duplicating the ambiguous/imaginary datetime checks. We're also going to be looking at simplifying things by having all of these specifier methods return strings and not an random mix of types. t() - the value can only be one of 28, 29, 30, or 31. As such, there is no need to zero-pad to a width of two. | |||
| 2023-01-05 | Optimized imports in django.utils.dateformat. | Nick Pope | |
| Avoid extra attribute lookup in specifier methods, etc. by importing classes from datetime directly. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-12-02 | Updated various links to HTTPS and new locations. | Mariusz Felisiak | |
| Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-08-06 | Refs #32956 -- Corrected spelling of daylight saving time. | David Smith | |
| AP Stylebook: Saving not savings, no hyphen, and lowercase. | |||
| 2021-07-13 | Simplified django.utils.dateformat methods. | Nick Pope | |
| This removes unnecessary format('O') call, remove unnecessary method calls for simple cases in TimeFormat, and simplifies time zone handling in TimeFormat. | |||
| 2021-05-12 | Fixed #32366 -- Updated datetime module usage to recommended approach. | Nick Pope | |
| - Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp(). | |||
| 2021-05-12 | Fixed #32735 -- Made DateFormat.Y() return a zero-padded year. | Nick Pope | |
| 2021-01-19 | Refs #32365 -- Allowed use of non-pytz timezone implementations. | Paul Ganssle | |
| 2020-11-12 | Simplified TimeFormat.g(). | Nick Pope | |
| 2020-11-12 | Fixed #32149 -- Added support for years < 1000 to DateFormat.y(). | Sam | |
| 2020-05-12 | Fixed E128, E741 flake8 warnings. | Mariusz Felisiak | |
| 2019-11-22 | Fixed #9762 -- Made DateFormat.r() locale-independent. | Baptiste Mispelon | |
| Thanks to Antonio Melé for the original report all those years ago and to all the contributors who helped along the way. | |||
| 2019-11-22 | Refs #26281 -- Added a helpful error message for an invalid "r" specifier to ↵ | Baptiste Mispelon | |
| dateformat.format(). | |||
| 2019-11-18 | Fixed #30989 -- Removed unimplemented B time format. | Baptiste Mispelon | |
| It's never been documented and has always raised a NotImplementedError. | |||
| 2019-11-18 | Simplified DateFormat.W() and z(). | Baptiste Mispelon | |
| 2019-11-18 | Fixed #30990 -- Fixed example output in 'z' date format docs. | Baptiste Mispelon | |
| 2019-10-29 | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | |
| 2017-09-07 | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | |
| This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. | |||
| 2017-06-28 | Fixed #27818 -- Replaced try/except/pass with contextlib.suppress(). | Mads Jensen | |
| 2017-04-27 | Refs #27795 -- Replaced many force_text() with str() | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-11 | Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. | Anton Samarchyan | |
| 2017-02-07 | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-26 | Refs #23919, #27778 -- Removed obsolete mentions of unicode. | Vytis Banaitis | |
| 2017-01-25 | Removed unused variables that are overwritten. | Mads Jensen | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-14 | Fixed #27463 -- Fixed E741 flake8 warnings. | Ramin Farajpour Cami | |
| 2016-05-10 | Fixed #26580 -- Updated references to obsolete RFC 2822. | Vasiliy Faronov | |
| Didn't rename django.utils.feedgenerator.rfc2822_date() as some external code may rely on it. | |||
| 2016-04-20 | Fixed #26281 -- Added a helpful error message for an invalid format ↵ | Marko Benko | |
| specifier to dateformat.format(). | |||
| 2015-11-07 | Fixed debug view crash during autumn DST change. | Aymeric Augustin | |
| This only happens if USE_TZ = False and pytz is installed (perhaps not the most logical combination, but who am I to jugde?) Refs #23714 which essentially fixed the same problem when USE_TZ = True. Thanks Florian and Carl for insisting until I wrote a complete patch. | |||
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2013-11-03 | Fixed all E226 violations | Alex Gaynor | |
| 2013-11-02 | Correct flake8 E302 violations | Ray Ashman Jr | |
| 2013-11-02 | Correct flake8 violation E261 | Ray Ashman Jr | |
| 2013-10-23 | Fixed E225 pep8 warnings. | Tim Graham | |
| 2013-09-10 | Fixed #20841 -- Added messages to NotImplementedErrors | Gregor MacGregor | |
| Thanks joseph at vertstudios.com for the suggestion. | |||
| 2013-09-09 | Refactored code and tests that relied on django.utils.tzinfo. | Aymeric Augustin | |
| Refs #17262. | |||
| 2013-08-26 | Fixed #20693 -- Add timezone support to built-in time filter. | Warren Smith | |
| Modified django.utils.dateformat module, moving __init__() method and timezone-related format methods from DateFormat class to TimeFormat base class. Modified timezone-related format methods to return an empty string when timezone is inappropriate for input value. | |||
| 2013-05-17 | Replaced an antiquated pattern. | Aymeric Augustin | |
| Thanks Lennart Regebro for pointing it out. | |||
| 2012-09-22 | Fixed #18951 -- Formatting of microseconds. | Aymeric Augustin | |
| Thanks olofom at gmail com for the report. | |||
| 2012-08-07 | [py3] Ported django.utils.encoding. | Aymeric Augustin | |
| * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str. | |||
