browsertrix/backend
Tessa Walsh aaf18e70a0
Add created date to Organization and fix datetimes across backend (#1921)
Fixes #1916

- Add `created` field to Organization and OrgOut, set on org creation
- Add migration to backfill `created` dates from first workflow
`created`
- Replace `datetime.now()` and `datetime.utcnow()` across app with
consistent timezone-aware `utils.dt_now` helper function, which now uses
`datetime.now(timezone.utc)`. This is in part to ensure consistency in
how we handle datetimes, and also to get ahead of timezone naive
datetime creation methods like `datetime.utcnow()` being deprecated in
Python 3.12. For more, see:
https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated
2024-07-15 19:46:32 -07:00
..
btrixcloud Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
test Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
test_nightly Add nightly backend tests for org deletion while browsers are running (#1919) 2024-07-10 16:52:27 -07:00
.pylintrc
Dockerfile
mypy.ini
requirements.txt Add superuser API endpoints to export and import org data (#1394) 2024-07-02 17:14:34 -04:00
test-requirements.txt