sco1 / skyportal

A PyPortal based flight tracker
MIT License
1 stars 0 forks source link

Display local time on-screen #6

Closed sco1 closed 1 year ago

sco1 commented 1 year ago

Right now we're just being lazy and taking the API response (UTC), but would be better to get the TZ offset from our specified grid and convert

sco1 commented 1 year ago

Tracing get_local_time to its home in adafruit_portalbase.network the time is queried from AIO as %Y-%m-%d %H:%M:%S.%L %j %u %z %Z & returned by the method after setting the internal clock. I think the best we can do is parse this response & transform the OpenSky API time, which is always given in UTC.