mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-10 14:11:23 +08:00
Fix snapshot date regex to include all timezones
This commit is contained in:
parent
3accc9532a
commit
dd4c6bec71
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue