Skip to content

Commit 644c91c

Browse files
committed
Improve comment around timezone and please pylint
1 parent 955c655 commit 644c91c

File tree

1 file changed

+5
-3
lines changed
  • CircuitPython_Day_2024_Projects/Qualia_820x320_IO_Countdown

1 file changed

+5
-3
lines changed

CircuitPython_Day_2024_Projects/Qualia_820x320_IO_Countdown/code.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
from adafruit_ticks import ticks_ms, ticks_add, ticks_diff
1717

1818
## See TZ Identifier column at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
19-
## If you want to set the timezone, you can do so with the following:
20-
timezone = os.getenv("ADAFRUIT_AIO_TIMEZONE", "America/New_York") # Fetch timezone from settings.toml or default to EST
21-
# timezone = None # Or instead rely on automatic timezone detection based on IP Address
19+
## If you want to set the timezone, you can do so with the following code, which
20+
## attempts to get timezone from settings.toml or defaults to New York
21+
timezone = os.getenv("ADAFRUIT_AIO_TIMEZONE", "America/New_York")
22+
## Or instead rely on automatic timezone detection based on IP Address
23+
# timezone = None
2224

2325

2426
## The time of the thing!

0 commit comments

Comments
 (0)