Skip to content

Commit

Permalink
Merge pull request #1271 from rpatel3001/fix_irdm_timestamp
Browse files Browse the repository at this point in the history
update IRDM timestamp format
  • Loading branch information
rpatel3001 authored Sep 17, 2024
2 parents 3fdc8f6 + eddc9f4 commit f1991bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/webapp/acars_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def format_irdm_message(unformatted_message):

if acars := unformatted_message.get("acars"):
if timestamp := acars.get("timestamp"):
irdm_message["timestamp"] = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%S").replace(tzinfo=timezone.utc).timestamp()
irdm_message["timestamp"] = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%SZ").replace(tzinfo=timezone.utc).timestamp()

if errors := acars.get("errors"):
irdm_message["error"] = errors
Expand Down

0 comments on commit f1991bc

Please sign in to comment.