Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Jan 6, 2025
1 parent b3dc5a5 commit f7bea3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/helpers/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def calculate_relative_offset(format_string, from_ts, earlier=False):
from_ts = archive_ts_now()

if format_string is not None:
offset_regex = re.compile(r"(?P<offset>\d+)(?P<unit>[YmdHMS])")
offset_regex = re.compile(r"(?P<offset>\d+)(?P<unit>[ymwdHMS])")
match = offset_regex.search(format_string)

if match:
Expand Down

0 comments on commit f7bea3c

Please sign in to comment.