Skip to main content

get_default_timezone

Return the default time zone as a tzinfo instance.

This is the time zone defined by settings.TIME_ZONE.
def get_default_timezone() - > zoneinfo.ZoneInfo

Return the default time zone as a tzinfo instance. This is the time zone defined by settings.TIME_ZONE.

Returns

TypeDescription
zoneinfo.ZoneInfoA tzinfo instance representing the default time zone configured in the application settings.