Fix snapshot date regex to include all timezones

This commit is contained in:
Orsiris de Jong 2024-03-28 21:49:40 +01:00
parent 3accc9532a
commit dd4c6bec71

View file

@ -544,7 +544,7 @@ def _main_gui(viewer_mode: bool):
snapshots.reverse() # Let's show newer snapshots first
for snapshot in snapshots:
if re.match(
r"[0-9]{4}-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\..*\+[0-2][0-9]:[0-9]{2}",
r"[0-9]{4}-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\..*[+-][0-2][0-9]:[0-9]{2}",
snapshot["time"],
):
snapshot_date = dateutil.parser.parse(snapshot["time"]).strftime(