MCPcopy
hub / github.com/django/django / _get_timezone_name

Function _get_timezone_name

django/utils/timezone.py:74–79  ·  view source on GitHub ↗

Return the offset for fixed offset timezones, or the name of timezone if not set.

(timezone)

Source from the content-addressed store, hash-verified

72
73
74def _get_timezone_name(timezone):
75 """
76 Return the offset for fixed offset timezones, or the name of timezone if
77 not set.
78 """
79 return timezone.tzname(None) or str(timezone)
80
81
82# Timezone selection functions.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected