Skip to content

Commit 1f1d300

Browse files
mnenciaarmru
andauthored
fix(targetTime): treat RFC3339-like timestamps without timezone as UTC (#700)
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 RFC3339-like timestamps without timezone are interpreted as UTC. Closes #699 Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
1 parent db96dcc commit 1f1d300

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
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.1
1313
github.com/cloudnative-pg/cnpg-i-machinery v0.4.2
14-
github.com/cloudnative-pg/machinery v0.3.2
14+
github.com/cloudnative-pg/machinery v0.3.3
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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ github.com/cloudnative-pg/cnpg-i v0.3.1 h1:fKj8NoToWI11HUL2UWYJBpkVzmaTvbs3kDMo7
2626
github.com/cloudnative-pg/cnpg-i v0.3.1/go.mod h1:glRDiJLJY51FY8ScJIv/OkaGJxFnojJkkNAqSy5XC6s=
2727
github.com/cloudnative-pg/cnpg-i-machinery v0.4.2 h1:0reS9MtyLYINHXQ/MfxJ9jp39hhBf8e3Qdj+T5Nsq6I=
2828
github.com/cloudnative-pg/cnpg-i-machinery v0.4.2/go.mod h1:gvrKabgxXq0zGthXGucemDdsxakLEQDMxn43M4HLW30=
29-
github.com/cloudnative-pg/machinery v0.3.2 h1:jtJZiQ3hHGTTRk21854E84owFqrVvaGvLfBcH4E/WXY=
30-
github.com/cloudnative-pg/machinery v0.3.2/go.mod h1:RYAYlVKBF5pH4mg+Q8wHjNDyENV9ajbkG41zOEf8DEs=
29+
github.com/cloudnative-pg/machinery v0.3.3 h1:CaqXqLTJH9RrVv3R/YU0NmFaI/F18HLg2JfH3mQLcDk=
30+
github.com/cloudnative-pg/machinery v0.3.3/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=

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)