{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Provides Django database, form, and REST framework fields for storing and working with timezone objects using either the standard library's zoneinfo or the legacy pytz library.","skillfed_tags":["django-orm","timezone-handling"],"use_cases":["Store user or location timezone preferences in a Django model and retrieve them as timezone objects for datetime operations.","Build a form or API endpoint where users select their timezone from a validated dropdown or choice field.","Migrate an existing Django project from pytz to zoneinfo while keeping the same database schema and field behavior.","Display timezone choices with GMT offsets in admin or user-facing forms for clarity (e.g., 'GMT+04:00 Asia/Dubai').","Serialize timezone data in Django REST Framework APIs, accepting and returning timezone identifiers as strings."],"what_it_does":"django-timezone-field bridges Django models, forms, and REST serializers with Python's timezone handling, letting you store timezone identifiers in the database and retrieve them as either zoneinfo or pytz objects. It handles the transition from pytz to zoneinfo by supporting both, with defaults that follow Django's own deprecation timeline: zoneinfo is the default for Django 4.0+, while Django 5.0+ drops pytz support entirely and this package follows suit.\n\nThe package stores timezone values as strings in the database but automatically converts them to timezone objects on retrieval, validates against known timezone names, and renders timezone choices in forms with optional GMT offset display. It works across Django's ORM, form validation, and Django REST Framework serialization without requiring data migrations when switching between pytz and zoneinfo.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real Django need\u2014timezone field handling\u2014across models, forms, and REST APIs. It cleanly handles the pytz-to-zoneinfo transition and is compatible with current Django versions (4.2 through 6.1). Install it if you need timezone storage and validation in Django."},"id":"django-timezone-field","links":{"html":"https://skillfed.io/packages/django-timezone-field","md":"https://skillfed.io/packages/django-timezone-field.md","pypi":"https://pypi.org/project/django-timezone-field/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-06","license_spdx":null,"license_treatment":"permissive","name":"django-timezone-field","python_support":"supports_current","summary":"A Django app providing DB, form, and REST framework fields for zoneinfo and pytz timezone objects."},"popularity":{"monthly_downloads":8827989,"position":1592,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"7.2.2"}
