From 0765b9d2339fc82a20a68c88b118d339be8cd9fa Mon Sep 17 00:00:00 2001 From: BryanSlavinBryter Date: Wed, 25 Dec 2024 06:32:40 -0500 Subject: [PATCH] Change retrieval of timezone parameter per comment in pull request --- apps/hanukkah/hanukkah.star | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/hanukkah/hanukkah.star b/apps/hanukkah/hanukkah.star index 7d6ab6c0d..0e3e62abd 100644 --- a/apps/hanukkah/hanukkah.star +++ b/apps/hanukkah/hanukkah.star @@ -25,10 +25,8 @@ def get_hanukkah_dates(year): return hanukkah_first_day, hanukkah_last_day def main(config): - timezone = config.get("timezone") or "America/New_York" - if not time.is_valid_timezone(timezone): - timezone = "America/New_York" - current_time = time.now().in_location(timezone) + tz = config.get("$tz", "America/New_York") + current_time = time.now().in_location(tz) current_year = current_time.year if current_year > 2030: