| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-02-18 | Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. | Mariusz Felisiak | |
| datetime.UTC was added in Python 3.11. | |||
| 2024-02-15 | Fixed #33037 -- Fixed Trunc() with offset timezones on MySQL, SQLite, Oracle. | Shafiya Adzhani | |
| 2024-02-15 | Improved test helpers in truncated date/time field tests. | Shafiya Adzhani | |
| Co-authored-by: Lily Foote <code@lilyf.org> | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-01-18 | Fixed #34233 -- Dropped support for Python 3.8 and 3.9. | Mariusz Felisiak | |
| 2023-01-17 | Refs #32365 -- Removed support for pytz timezones per deprecation timeline. | Mariusz Felisiak | |
| 2022-12-15 | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | |
| Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-10-08 | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | |
| assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | |||
| 2022-10-03 | Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL. | Lily Foote | |
| 2022-07-06 | Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters. | Simon Charette | |
| Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-07-04 | Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against ↵ | Mariusz Felisiak | |
| SQL injection. Thanks Takuto Yoshikai (Aeye Security Lab) for the report. | |||
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-02-22 | Refs #33517 -- Prevented __second lookup from returning fractional seconds ↵ | nabil-rady | |
| on PostgreSQL. | |||
| 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-13 | Refs #33355 -- Fixed Trunc() with years < 1000 on SQLite. | Adam Johnson | |
| Thanks to Nick Pope for spotting the bug in Code Review. Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | |||
| 2021-12-13 | Refs #33355 -- Moved Trunc() assertions for invalid arguments and ISO 8601 ↵ | Mariusz Felisiak | |
| week to separate tests. | |||
| 2021-11-12 | Fixed #33279 -- Fixed handling time zones with "-" sign in names. | Can Sarigol | |
| Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1. | |||
| 2021-09-16 | Fixed #32365 -- Made zoneinfo the default timezone implementation. | Carlton Gibson | |
| Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews. | |||
| 2021-07-15 | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | |
| django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-05-17 | Fixed #32750 -- Fixed crash of Extract() transform on OuterRef() expressions. | Artur Beltsov | |
| Thanks Simon Charette for the review. | |||
| 2021-05-11 | Fixed #32722 -- Fixed comparing to TruncTime() on Oracle. | Mariusz Felisiak | |
| 2021-05-07 | Fixed #32699 -- Fixed comparing to TruncTime() with 0 microseconds on MySQL. | Alex Hill | |
| 2021-03-23 | Fixed #32573 -- Fixed bounds in __iso_year lookup optimization. | Florian Demmer | |
| 2021-01-19 | Refs #32365 -- Allowed use of non-pytz timezone implementations. | Paul Ganssle | |
| 2020-10-14 | Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a ↵ | David-Wobrock | |
| specific timezone. | |||
| 2020-10-14 | Removed redundant tests in test_extract_trunc. | David-Wobrock | |
| tzinfo is ignored for DateFields and TimeFields, and it's already covered by DateFunctionTests.test_trunc_func(). | |||
| 2020-10-14 | Refs #31640 -- Made Extract raise ValueError when using tzinfo with ↵ | David-Wobrock | |
| Date/TimeField. | |||
| 2020-09-02 | Fixed #31948 -- Added tzinfo parameter to TruncDate() and TruncTime(). | Joe Jackson | |
| 2019-10-02 | Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day ↵ | Anatol Ulrich | |
| lookup. | |||
| 2019-07-12 | Fixed #30602 -- Made Extract raise ValueError when using unsupported lookups ↵ | Hasan Ramezani | |
| for DurationField. | |||
| 2019-06-13 | Fixed #30128 -- Fixed handling timedelta timezone in database functions. | can | |
| 2019-05-21 | Fixed #29396 -- Added indirect values support to __year lookups. | Simon Charette | |
| Thanks Windson Yang for the initial patch. | |||
| 2019-05-21 | Fixed #30494 -- Disabled __year lookup optimization for indirect values. | Simon Charette | |
| The previous heuristics were naively enabling the BETWEEN optimization on successful cast of the first rhs SQL params to an integer while it was not appropriate for a lot of database resolved expressions. Thanks Alexey Chernov for the report. | |||
| 2019-03-07 | Fixed #29754 -- Added is_dst parameter to Trunc database functions. | ahbk | |
| 2018-09-10 | Fixed #29500 -- Fixed SQLite function crashes on null values. | Srinivas Reddy Thatiparthy | |
| Co-authored-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> | |||
| 2018-08-18 | Fixed #28649 -- Added ExtractIsoYear database function and iso_year lookup. | Sigurd Ljødal | |
| 2018-08-16 | Reorganized datetime db function tests. | Nick Pope | |
