diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-10-12 20:27:20 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-05 12:55:28 +0100 |
| commit | 6c86495bcee22eac19d7fb040b2988b830707cbd (patch) | |
| tree | 50c727d80cf933acfdbd167d3d424081e06b0eef /docs | |
| parent | 65477fd7dae9e2c9f4a241b2eddf25bdb1ceeb0f (diff) | |
Simplified handling ambiguous/imaginary datetimes in django.utils.dateformat.
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.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
