Skip to content

Commit e6bf3da

Browse files
authored
Merge pull request #497 from akkuman/fix/tz
fix: support positive offset time zones
2 parents 423679a + 9cfedd7 commit e6bf3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/core/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
// filenameRE is a regular expression to match a backup filename
21-
var filenameRE = regexp.MustCompile(`^db_backup_(\d{4})-(\d{2})-(\d{2})T(\d{2})[:-](\d{2})[:-](\d{2})(Z|\-\d{2}:\d{2})\.\w+$`)
21+
var filenameRE = regexp.MustCompile(`^db_backup_(\d{4})-(\d{2})-(\d{2})T(\d{2})[:-](\d{2})[:-](\d{2})(Z|[\-\+]\d{2}[:-]\d{2})\.\w+$`)
2222

2323
// Prune prune older backups
2424
func (e *Executor) Prune(ctx context.Context, opts PruneOptions) error {

0 commit comments

Comments
 (0)