From 997ed97cc8cfdb1b7b3d033959c7854403f2340c Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 20 Apr 2024 10:36:55 +0200 Subject: [PATCH] [reassembler] acars: fix timezone on timestamps --- iridiumtk/reassembler/sbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iridiumtk/reassembler/sbd.py b/iridiumtk/reassembler/sbd.py index d72f3b7..0c7f76f 100755 --- a/iridiumtk/reassembler/sbd.py +++ b/iridiumtk/reassembler/sbd.py @@ -322,7 +322,7 @@ def parity7(data): if q.label == b'_\x7f' and 'nopings' in config.args: return - q.timestamp = datetime.datetime.fromtimestamp(q.time).strftime("%Y-%m-%dT%H:%M:%S%z") + q.timestamp = dt.epoch(q.time).isoformat(timespec='seconds') while len(q.f_reg)>0 and q.f_reg[0:1]==b'.': q.f_reg=q.f_reg[1:]