Return the default time zone as a tzinfo instance. This is the time zone defined by Tortoise config.
()
| 71 | |
| 72 | @functools.cache |
| 73 | def 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 | |
| 82 | def _reset_timezone_cache() -> None: |
searching dependent graphs…