MCPcopy
hub / github.com/tortoise/tortoise-orm / get_default_timezone

Function get_default_timezone

tortoise/timezone.py:73–79  ·  view source on GitHub ↗

Return the default time zone as a tzinfo instance. This is the time zone defined by Tortoise config.

()

Source from the content-addressed store, hash-verified

71
72@functools.cache
73def get_default_timezone() -> tzinfo:
74 """
75 Return the default time zone as a tzinfo instance.
76
77 This is the time zone defined by Tortoise config.
78 """
79 return parse_timezone(get_timezone())
80
81
82def _reset_timezone_cache() -> None:

Calls 2

parse_timezoneFunction · 0.85
get_timezoneFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…