Skip to content

Commit 2082e8d

Browse files
committed
fix(targetTime): treat RFC3339-like timestamps without timezone as UTC
Update the machinery dependency to include the fix that ensures RFC3339-like timestamps without timezone (e.g., "2024-01-15T10:30:00") are interpreted as UTC. The documentation has been updated to use a targetTime example with an explicit Z suffix and to clarify that timestamps without timezone are interpreted as UTC. Closes #699 Signed-off-by: Marco Nenciarini <[email protected]>
1 parent 3f8d4f7 commit 2082e8d

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/cloudnative-pg/cloudnative-pg v1.28.0
1212
github.com/cloudnative-pg/cnpg-i v0.3.0
1313
github.com/cloudnative-pg/cnpg-i-machinery v0.4.1
14-
github.com/cloudnative-pg/machinery v0.3.1
14+
github.com/cloudnative-pg/machinery v0.3.2-0.20251224124022-0a2c04fbd5fe
1515
github.com/onsi/ginkgo/v2 v2.27.3
1616
github.com/onsi/gomega v1.38.3
1717
github.com/spf13/cobra v1.10.2
@@ -119,7 +119,7 @@ require (
119119
golang.org/x/net v0.47.0 // indirect
120120
golang.org/x/oauth2 v0.32.0 // indirect
121121
golang.org/x/sync v0.18.0 // indirect
122-
golang.org/x/sys v0.38.0 // indirect
122+
golang.org/x/sys v0.39.0 // indirect
123123
golang.org/x/term v0.37.0 // indirect
124124
golang.org/x/text v0.31.0 // indirect
125125
golang.org/x/time v0.13.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ github.com/cloudnative-pg/cnpg-i v0.3.0 h1:5ayNOG5x68lU70IVbHDZQrv5p+bErCJ0mqRmO
2626
github.com/cloudnative-pg/cnpg-i v0.3.0/go.mod h1:VOIWWXcJ1RyioK+elR2DGOa4cBA6K+6UQgx05aZmH+g=
2727
github.com/cloudnative-pg/cnpg-i-machinery v0.4.1 h1:M4ELhZO0e7UjiV3PZ3uGJOz3SgG/3ThWiqkbrFCcXNE=
2828
github.com/cloudnative-pg/cnpg-i-machinery v0.4.1/go.mod h1:TxwoMgQINOJkS1kepudqCBTYd8QYev6JoT8R52pYD4E=
29-
github.com/cloudnative-pg/machinery v0.3.1 h1:KtPA6EwELTUNisCMLiFYkK83GU9606rkGQhDJGPB8Yw=
30-
github.com/cloudnative-pg/machinery v0.3.1/go.mod h1:jebuqKxZAbrRKDEEpVCIDMKW+FbWtB9Kf/hb2kMUu9o=
29+
github.com/cloudnative-pg/machinery v0.3.2-0.20251224124022-0a2c04fbd5fe h1:Tnh+eRQdcFquywy1Oit9vaMRw1YOfN14+PpMBDhexyk=
30+
github.com/cloudnative-pg/machinery v0.3.2-0.20251224124022-0a2c04fbd5fe/go.mod h1:RYAYlVKBF5pH4mg+Q8wHjNDyENV9ajbkG41zOEf8DEs=
3131
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
3232
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3333
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -275,8 +275,8 @@ golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY=
275275
golang.org/x/oauth2 v0.32.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
276276
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
277277
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
278-
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
279-
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
278+
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
279+
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
280280
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
281281
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
282282
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=

web/docs/troubleshooting.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ For detailed Barman restore operations and troubleshooting, refer to the
339339
recovery:
340340
source: origin
341341
recoveryTarget:
342-
targetTime: "2024-01-15 10:30:00"
342+
targetTime: "2024-01-15T10:30:00Z"
343343

344344
externalClusters:
345345
- name: origin
@@ -358,6 +358,11 @@ For detailed Barman restore operations and troubleshooting, refer to the
358358
-c plugin-barman-cloud | grep -i wal
359359
```
360360

361+
:::note
362+
RFC 3339 timestamps without an explicit timezone suffix
363+
(e.g., `2024-01-15T10:30:00`) are interpreted as UTC.
364+
:::
365+
361366
:::note
362367
For detailed PITR configuration and WAL management, see the
363368
[Barman PITR documentation](https://docs.pgbarman.org/latest/).

0 commit comments

Comments
 (0)