browsertrix/backend/btrixcloud
Tessa Walsh 123705c53f
Serialize datetimes with Z suffix (#2058)
Use timezone aware datetimes instead of timezone naive datetimes:
- Update mongodb client to use tz-aware conversion
- Convert dt_now() to return timezone aware UTC date
- Rename to_k8s_date -> date_to_str, just returns ISO UTC date with 'Z'
(instead of '+00:00' suffix)
- Rename from_k8s_date -> str_to_date, returns timezone aware date from
str
- Standardize all string<->date conversion to use either date_to_str or
str_to_date
- Update frontend to assume iso date, not append 'Z' directly
- Update tests to check for 'Z' suffix on some dates

---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2024-09-12 16:16:13 -07:00
..
migrations
operator Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
__init__.py
auth.py
background_jobs.py
basecrawls.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
colls.py
crawlconfigs.py
crawlmanager.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
crawls.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
db.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
emailsender.py
invites.py
k8sapi.py
main_op.py
main.py
models.py
orgs.py
pages.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
pagination.py
profiles.py
storages.py
subs.py
uploads.py
users.py
utils.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
version.py
webhooks.py