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> |
||
---|---|---|
.. | ||
migrations | ||
operator | ||
__init__.py | ||
auth.py | ||
background_jobs.py | ||
basecrawls.py | ||
colls.py | ||
crawlconfigs.py | ||
crawlmanager.py | ||
crawls.py | ||
db.py | ||
emailsender.py | ||
invites.py | ||
k8sapi.py | ||
main_op.py | ||
main.py | ||
models.py | ||
orgs.py | ||
pages.py | ||
pagination.py | ||
profiles.py | ||
storages.py | ||
subs.py | ||
uploads.py | ||
users.py | ||
utils.py | ||
version.py | ||
webhooks.py |