mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Previous cleanups (mostly the removals of Python __future__ imports) were done in a way that introduced leading newlines. Delete leading newlines from all files, except static/assets/zulip-emoji/NOTICE, which is a verbatim copy of the Apache 2.0 license. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
11 lines
206 B
Python
11 lines
206 B
Python
from typing import List
|
|
|
|
import pytz
|
|
import datetime
|
|
|
|
def get_all_timezones() -> List[str]:
|
|
return sorted(pytz.all_timezones)
|
|
|
|
def get_timezone(tz: str) -> datetime.tzinfo:
|
|
return pytz.timezone(tz)
|