From ebd237d9d36dac2ffb83a30c29964a272e8e30d2 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Wed, 12 Jul 2023 12:34:50 -0500 Subject: [PATCH] Get UTC time from stations table. --- api_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_app.py b/api_app.py index bae32f5..d0b0a2c 100644 --- a/api_app.py +++ b/api_app.py @@ -128,7 +128,7 @@ def index(): # Convert unix time to datetime on the fly because I'm lazy right now for station in stations: if station['last_heard_unix'] != None: - station['last_heard'] = datetime.datetime.fromtimestamp(station['last_heard_unix']) + station['last_heard'] = datetime.datetime.utcfromtimestamp(station['last_heard_unix']) return render_template('index.html', station_call = config['Settings']['station_call'],