Get timezone from env set in Tortoise config.
()
| 50 | |
| 51 | @functools.cache |
| 52 | def get_timezone() -> str: |
| 53 | """ |
| 54 | Get timezone from env set in Tortoise config. |
| 55 | """ |
| 56 | return os.environ.get("TIMEZONE") or "UTC" |
| 57 | |
| 58 | |
| 59 | def now() -> datetime: |
no test coverage detected
searching dependent graphs…