Use python's zoneinfo instead of pytz #94

Closed
opened 2023-04-01 21:18:38 +00:00 by thomas · 0 comments
Owner

According to official documentation, since Django 4.0, usage of standard python zoneinfo module is privileged to pytz. Current implementation uses this last one.

Todo:

  • check all usages of pytz (models, templates, tests);
  • replace them by zoneinfo;
  • at least Schedule model (may be Diffusion too) will be subject to this issue
  • check that tests work

Docs:

According to official documentation, since Django 4.0, usage of standard python `zoneinfo` module is privileged to `pytz`. Current implementation uses this last one. Todo: - check all usages of pytz (models, templates, tests); - replace them by zoneinfo; - at least Schedule model (may be Diffusion too) will be subject to this issue - check that tests work Docs: - Django & timezones: https://docs.djangoproject.com/en/4.1/topics/i18n/timezones/ - Zoneinfo module: https://docs.python.org/3/library/zoneinfo.html#module-zoneinfo
thomas added this to the 1.0 milestone 2023-04-01 21:18:38 +00:00
thomas added the
amélioration
label 2023-04-01 21:18:38 +00:00
thomas added the
stabilisation
label 2023-06-18 19:29:45 +00:00
Sign in to join this conversation.
No description provided.