index
:
chango.git
devmain
fix-31295
initial-branch
main
stable/5.2.x
stable/6.0.x
django
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
django
/
db
/
models
/
functions
/
datetime.py
Age
Commit message (
Expand
)
Author
2026-02-28
Added DatabaseOperations.convert_trunc_expression() hook.
Tim Graham
2025-07-23
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
django-bot
2025-05-27
Removed unreachable check for None in TruncBase.convert_value().
Tim Graham
2024-01-26
Applied Black's 2024 stable style.
Mariusz Felisiak
2023-07-30
Fixed warnings per flake8 6.1.0.
Mariusz Felisiak
2023-05-11
Fixed #34558 -- Fixed QuerySet.bulk_create() crash with Now() on Oracle.
Mariusz Felisiak
2023-01-17
Refs #32365 -- Removed is_dst argument for various methods and functions.
Mariusz Felisiak
2022-10-24
Refs #34070 -- Fixed date format in Now() on SQLite.
Mariusz Felisiak
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
2022-07-04
Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against SQ...
Mariusz Felisiak
2022-02-07
Refs #33476 -- Reformatted code with Black.
django-bot
2021-09-16
Fixed #32365 -- Made zoneinfo the default timezone implementation.
Carlton Gibson
2021-07-15
Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.db....
Daniyal
2021-05-17
Fixed #32750 -- Fixed crash of Extract() transform on OuterRef() expressions.
Artur Beltsov
2021-03-24
Removed trailing whitespaces in error messages.
Mariusz Felisiak
2020-10-14
Fixed #31640 -- Made Trunc() truncate datetimes to Date/TimeField in a specif...
David-Wobrock
2020-10-14
Refs #31640 -- Made Extract raise ValueError when using tzinfo with Date/Time...
David-Wobrock
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 l...
Anatol Ulrich
2019-07-12
Fixed #30602 -- Made Extract raise ValueError when using unsupported lookups ...
Hasan Ramezani
2019-03-07
Fixed #29754 -- Added is_dst parameter to Trunc database functions.
ahbk
2019-01-14
Corrected comment in TruncTime database function.
Nick Pope
2019-01-08
Simplified some imports for database functions.
Nick Pope
2018-09-10
Fixed #29500 -- Fixed SQLite function crashes on null values.
Srinivas Reddy Thatiparthy
2018-08-23
Fixed #29048 -- Added **extra_context to database function as_vendor() methods.
priyanshsaxena
2018-08-18
Fixed #28649 -- Added ExtractIsoYear database function and iso_year lookup.
Sigurd Ljødal
2018-08-07
Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation ...
Raphael Michel
2018-01-27
Fixed #28650 -- Added TruncWeek database function.
Sigurd Ljødal
2017-10-13
Refs #28643 -- Reorganized database functions.
Mariusz Felisiak
2017-09-11
Fixed #28492 -- Defined default output_field of expressions at the class level.
Simon Charette
2017-07-31
Removed unneeded TruncBase.arity.
Sergey Fedoseev
2017-07-20
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expre...
Tim Graham
2017-07-14
Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from _ou...
Sergey Fedoseev
2017-06-28
Fixed #27473 -- Added DurationField support to Extract.
Daniel Hahler
2017-06-08
Fixed #28103 -- Added quarter extract, truncation, and lookup.
Mads Jensen
2017-02-06
Fixed #27802 -- Unified return value of db backend datetime SQL methods.
Mariusz Felisiak
2017-01-25
Refs #23919 -- Replaced super(ClassName, self) with super().
chillaranand
2017-01-19
Refs #23919 -- Stopped inheriting from object to define new style classes.
Simon Charette
2017-01-18
Refs #23919 -- Removed encoding preambles and future imports
Claude Paroz
2016-11-11
Fixed #25240 -- Added ExtractWeek and exposed it through the __week lookup.
Mads Jensen
2016-11-10
Removed redundant DateTimeField.register_lookup()s.
Tim Graham
2016-10-27
Fixed #27327 -- Simplified time zone handling by requiring pytz.
Tim Graham
2016-07-08
Fixed #26348 -- Added TruncTime and exposed it through the __time lookup.
Simon Charette
2016-07-08
Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.
Simon Charette
2016-05-19
Fixed some newlines in imports per isort.
Tim Graham
2016-05-18
Fixed #25774 -- Refactor datetime expressions into public API
Josh Smeaton