Skip to content

Django <= 3.X defaults to using ZoneInfoBackend instead of PYTZBackend #109

@mcastle

Description

@mcastle

This is because without explicitly setting use_pytz=True in a TimeZoneField, use_pytz defaults to None, causing get_tz_backend to return ZoneInfoBackend instead of the intended PYTZBackend.

A workaround ahead of a code fix is to explicitly set use_pytz=True in a TimeZoneField.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions