Files
zulip/tools/setup/build_timezone_values
Anders Kaseorg 6e4c3e41dc python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00

12 lines
300 B
Python
Executable File

#!/usr/bin/env python3
import json
import os
import pytz
ZULIP_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../")
OUT_PATH = os.path.join(ZULIP_PATH, "static", "generated", "timezones.json")
with open(OUT_PATH, "w") as f:
json.dump({"timezones": pytz.all_timezones}, f)