From 62bd5356220bab1ce9f3ddaa7aaf75963b8bd596 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 13 Jul 2023 14:49:03 +0200 Subject: [PATCH] time conversion bugfix --- eive_tmtc/tmtc/acs/star_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/acs/star_tracker.py b/eive_tmtc/tmtc/acs/star_tracker.py index b45738d..c05f0bf 100644 --- a/eive_tmtc/tmtc/acs/star_tracker.py +++ b/eive_tmtc/tmtc/acs/star_tracker.py @@ -724,7 +724,7 @@ def unpack_time_hk(hk_data: bytes, current_idx: int, pw: PrintWrapper) -> int: ticks_time_fmt, hk_data[current_idx : current_idx + fmt_len] ) unix_as_dt = datetime.datetime.fromtimestamp( - int(round(unix_time / 10e6)), tz=datetime.timezone.utc + int(round(unix_time / 1e6)), tz=datetime.timezone.utc ) pw.dlog(f"Ticks: {ticks} | UNIX time: {unix_time}") pw.dlog(f"UNIX as datetime: {unix_as_dt}")