# HG changeset patch # User Paul Fisher # Date 1743539349 14400 # Node ID 1a69004d8e5ab5b25e05384971f64cee66cb6a0c # Parent d63ed60a41c7126ace8b3c7d71dd581a28338b31 Remove improper, broken use of ZoneInfo.localize. diff -r d63ed60a41c7 -r 1a69004d8e5a weather_server/server.py --- a/weather_server/server.py Tue Apr 01 16:05:13 2025 -0400 +++ b/weather_server/server.py Tue Apr 01 16:29:09 2025 -0400 @@ -55,7 +55,7 @@ last_reading = loc.latest() if last_reading: tz = loc.timezone() - date = tz.normalize(last_reading.sample_time.astimezone(tz)) + date = last_reading.sample_time.astimezone(tz) else: date = None now = datetime.datetime.now(tz=datetime.UTC)