From e1c3ee9edf5f59b58cc842f40a9e8ed148e893b4 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 16 Mar 2021 08:19:24 -0700 Subject: [PATCH] Actually return something with get_local_time --- adafruit_portalbase/network.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adafruit_portalbase/network.py b/adafruit_portalbase/network.py index 43d2d0b..955a322 100755 --- a/adafruit_portalbase/network.py +++ b/adafruit_portalbase/network.py @@ -241,8 +241,10 @@ def get_local_time(self, location=None): (year, month, mday, hours, minutes, seconds, week_day, year_day, is_dst) ) - if rtc is not None: - rtc.RTC().datetime = now + if rtc is not None: + rtc.RTC().datetime = now + + return reply def wget(self, url, filename, *, chunk_size=12000): """Download a url and save to filename location, like the command wget.