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 fix resetting of invalid logins: (#2002) 2024-08-07 12:36:06 -07:00
operator Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
__init__.py
auth.py Include user and user org info in login response (#2014) 2024-08-12 18:51:42 -07:00
background_jobs.py
basecrawls.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
colls.py
crawlconfigs.py stats recompute fixes: (#2022) 2024-08-26 14:18:59 -07:00
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 Subscription Update Quotas (#1988) 2024-08-05 15:59:47 -07:00
invites.py
k8sapi.py
main_op.py
main.py feat: Display scale as number of browser windows (#2057) 2024-09-05 17:32:40 -07:00
models.py add a crawling defaults on the Org to allow setting certain crawl workflow fields as defaults: (#2031) 2024-08-22 10:36:04 -07:00
orgs.py add a crawling defaults on the Org to allow setting certain crawl workflow fields as defaults: (#2031) 2024-08-22 10:36:04 -07:00
pages.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
pagination.py
profiles.py optimize org quota lookups (#1973) 2024-07-25 14:00:16 -07:00
storages.py
subs.py Subscription Update Quotas (#1988) 2024-08-05 15:59:47 -07:00
uploads.py optimize org quota lookups (#1973) 2024-07-25 14:00:16 -07:00
users.py fix resetting of invalid logins: (#2002) 2024-08-07 12:36:06 -07:00
utils.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
version.py version: bump to 1.12.0-beta.0 2024-09-12 14:30:15 -07:00
webhooks.py Add webhooks for qaAnalysisStarted, qaAnalysisFinished, and crawlReviewed (#1974) 2024-07-25 16:53:49 -07:00