Skip to content

Commit

Permalink
chore: always use time.utc
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Ruocco <[email protected]>
  • Loading branch information
armru committed Aug 27, 2024
1 parent 6d89d93 commit 58a14a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/management/catalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,14 @@ func (b *BarmanBackup) deserializeBackupTimeStrings() error {
)
var err error
if b.BeginTimeString != "" {
b.BeginTime, err = time.ParseInLocation(barmanTimeLayout, b.BeginTimeString, time.Local)
b.BeginTime, err = time.ParseInLocation(barmanTimeLayout, b.BeginTimeString, time.UTC)
if err != nil {
return err
}
}

if b.EndTimeString != "" {
b.EndTime, err = time.ParseInLocation(barmanTimeLayout, b.EndTimeString, time.Local)
b.EndTime, err = time.ParseInLocation(barmanTimeLayout, b.EndTimeString, time.UTC)
if err != nil {
return err
}
Expand Down

0 comments on commit 58a14a1

Please sign in to comment.