{"repo":"mfogel/django-timezone-field","free":true,"listed":false,"github":"https://github.com/mfogel/django-timezone-field","clone":"git clone https://github.com/mfogel/django-timezone-field.git","description":"A Django app providing DB, form, and REST framework fields for zoneinfo and pytz timezone objects.","language":"Python","stars":414,"topics":["python","django","timezones"],"license":"BSD-2-Clause","category":"api-integrations-sdks","readme_excerpt":"django-timezone-field A Django app providing DB, form, and REST framework fields for zoneinfo and pytz timezone objects. The transition from pytz to zoneinfo Like Django, this app supports both pytz and zoneinfo objects while the community transitions away from pytz to zoneinfo . All exposed fields and functions that return a timezone object accept an optional boolean kwarg use pytz . If not explicitly specified, the default value used for use pytz matches Django's behavior: - Django = 5.X: drops support for pytz altogether, and this app has done the same. Note that this app does not declare pytz to be a dependency, so if you're using this app with use pytz=True , you'll need to ensure pytz is included in the environment yourself. Differences in recognized timezones between pytz and zoneinfo pytz and zoneinfo search for timezone data differently. - pytz bundles and searches within its own copy of the IANA timezone DB - zoneinfo first searches the local system's timezone DB for a match. If no match is found, it then searches within the tzdata package if it is installed . The tzdata package contains a copy of the IANA timezone DB. If the local system's timezone DB doesn't cover the entire IANA timezone DB and the tzdata package is not installed, you may run across errors like ZoneInfoNotFoundError: 'No time zone found with key Pacific/Kanton' for seemingly valid timezones when transitioning from pytz to zoneinfo . The easy fix is to add tzdata to your project with poetry add tz","default_branch":null,"files":null,"tree":[],"storefront":"/r/mfogel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mfogel/django-timezone-field/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}