<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/utils/dateformat.py, branch 4.2.30</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=4.2.30</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=4.2.30'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2023-01-05T11:55:28Z</updated>
<entry>
<title>Simplified handling ambiguous/imaginary datetimes in django.utils.dateformat.</title>
<updated>2023-01-05T11:55:28Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-10-12T19:27:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6c86495bcee22eac19d7fb040b2988b830707cbd'/>
<id>urn:sha1:6c86495bcee22eac19d7fb040b2988b830707cbd</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Added support for datetime.date to DateFormat.r().</title>
<updated>2023-01-05T11:51:55Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2021-05-13T12:52:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=65477fd7dae9e2c9f4a241b2eddf25bdb1ceeb0f'/>
<id>urn:sha1:65477fd7dae9e2c9f4a241b2eddf25bdb1ceeb0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplified django.utils.dateformat.DateFormat.O()/t()/e() a bit.</title>
<updated>2023-01-05T04:59:26Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-10-12T22:20:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=41ca2afd1ce49949d509177987c3b4b7c8ba3fa1'/>
<id>urn:sha1:41ca2afd1ce49949d509177987c3b4b7c8ba3fa1</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Optimized imports in django.utils.dateformat.</title>
<updated>2023-01-05T04:57:50Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2022-10-12T21:45:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d7a8ab3513dbee10a04e1f7156457b9c83754bf5'/>
<id>urn:sha1:d7a8ab3513dbee10a04e1f7156457b9c83754bf5</id>
<content type='text'>
Avoid extra attribute lookup in specifier methods, etc. by importing
classes from datetime directly.
</content>
</entry>
<entry>
<title>Refs #33476 -- Refactored code to strictly match 88 characters line length.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-02-04T07:08:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7119f40c9881666b6f9b5cf7df09ee1d21cc8344'/>
<id>urn:sha1:7119f40c9881666b6f9b5cf7df09ee1d21cc8344</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated various links to HTTPS and new locations.</title>
<updated>2021-12-02T10:27:29Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-04-04T23:29:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5def7f3f743d0bb178546586245ad88a84b69390'/>
<id>urn:sha1:5def7f3f743d0bb178546586245ad88a84b69390</id>
<content type='text'>
Co-Authored-By: Nick Pope &lt;nick@nickpope.me.uk&gt;
</content>
</entry>
<entry>
<title>Refs #32956 -- Corrected spelling of daylight saving time.</title>
<updated>2021-08-06T11:00:24Z</updated>
<author>
<name>David Smith</name>
<email>smithdc@gmail.com</email>
</author>
<published>2021-07-30T12:41:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=8208381ba6a3d1613bb746617062ccf1a6a28591'/>
<id>urn:sha1:8208381ba6a3d1613bb746617062ccf1a6a28591</id>
<content type='text'>
AP Stylebook: Saving not savings, no hyphen, and lowercase.
</content>
</entry>
<entry>
<title>Simplified django.utils.dateformat methods.</title>
<updated>2021-07-13T11:27:01Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2021-05-13T12:33:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1f4908b01aaf7b209521d40ca0f3eb48f2ef1988'/>
<id>urn:sha1:1f4908b01aaf7b209521d40ca0f3eb48f2ef1988</id>
<content type='text'>
This removes unnecessary format('O') call, remove unnecessary method
calls for simple cases in TimeFormat, and simplifies time zone handling
in TimeFormat.
</content>
</entry>
<entry>
<title>Fixed #32366 -- Updated datetime module usage to recommended approach.</title>
<updated>2021-05-12T09:08:41Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2021-05-07T09:42:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d06c5b358149c02a62da8a5469264d05f29ac659'/>
<id>urn:sha1:d06c5b358149c02a62da8a5469264d05f29ac659</id>
<content type='text'>
- 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().
</content>
</entry>
</feed>
