Commit graph

8 commits

Author SHA1 Message Date
Jennifer Richards ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now (#4211)
* refactor: replace datetime.now with timezone.now

* refactor: migrate model fields to use timezone.now as default

* refactor: replace datetime.today with timezone.now

datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.

* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)

This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.

* refactor: revert datetime.today() change to old migrations

* refactor: change a missed datetime.now to timezone.now

* chore: renumber timezone_now migration

* chore: renumber migrations
2022-08-25 13:45:16 -03:00
Robert Sparks 3697180cc1 Reverted merge of timezone-aware migration efforts.
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz 774e752a54 Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz 34e6cae7d3 Added more complete help text to the show_messages and send_messags management commands.
- Legacy-Id: 17361
2020-02-27 20:24:31 +00:00
Henrik Levkowetz a7982f1f67 Added a missing __init__.py
- Legacy-Id: 17353
2020-02-26 21:31:54 +00:00
Henrik Levkowetz 7448037c65 Tweaked the show_messages managment command output.
- Legacy-Id: 17352
2020-02-26 21:28:51 +00:00
Henrik Levkowetz 3562af0b9b Added management commands to show saved messages (unsent and otherwise) and to send or re-send saved messages as needed.
- Legacy-Id: 17351
2020-02-26 18:14:29 +00:00