Skip to content

Commit 77e4080

Browse files
authored
Fix 'restore to time' display format (#1087)
1 parent 580a3c9 commit 77e4080

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/pbm/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,11 @@ func (pr pitrRange) String() string {
11151115
return fmt.Sprintf("{ %s }", pr.Range)
11161116
}
11171117

1118+
// fmtTS converts timestamp to Zulu time string representation,
1119+
// and removes Z identificator: 2025-02-05T11:04:59
11181120
func fmtTS(ts int64) string {
1119-
return time.Unix(ts, 0).UTC().Format(time.RFC3339)
1121+
t := time.Unix(ts, 0).UTC().Format(time.RFC3339)
1122+
return strings.TrimSuffix(t, "Z")
11201123
}
11211124

11221125
type outMsg struct {

0 commit comments

Comments
 (0)