browsertrix/backend/btrixcloud/operator
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
..
__init__.py
baseoperator.py optimize org quota lookups (#1973) 2024-07-25 14:00:16 -07:00
bgjobs.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
cronjobs.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
models.py Attempt to auto-adjust storage if usage is running out while crawl is running (#2023) 2024-08-26 14:19:20 -07:00
profiles.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00