From c1f0fa72600938083431ae89937e059e65ddf52e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 13 Mar 2022 08:38:22 -0400 Subject: [PATCH] convert linux time to timestamp --- groundstation/tago-upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groundstation/tago-upload.py b/groundstation/tago-upload.py index 72f43560..e6d17f75 100644 --- a/groundstation/tago-upload.py +++ b/groundstation/tago-upload.py @@ -29,7 +29,8 @@ while (True): altitude = 0 humidity = 0 - timestamp = chunks[0] + " " + chunks[1] + time = chunks[0] + " " + chunks[1] + timestamp = datetime.utcfromtimestamp(time).strftime('%Y-%m-%d %H:%M:%S') print(timestamp) for i in range(len(chunks)):