Skip to content

Commit 5bbc1d6

Browse files
committed
test time set location
1 parent 886d87c commit 5bbc1d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func buildFlagTest(t *testing.T) *cli.Command {
6060
&cli.DurationFlag{Name: "string-empty"},
6161
&cli.DurationFlag{Name: "string-set", Value: 12 * time.Minute},
6262
&cli.TimestampFlag{Name: "string-empty"},
63-
&cli.TimestampFlag{Name: "string-set", Value: time.Unix(1729456800, 0)},
63+
&cli.TimestampFlag{Name: "string-set", Value: time.Unix(1729456800, 0).UTC()},
6464
}}
6565
}
6666

testdata/expected-doc-all-flag-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ main [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
5757

5858
**--string-set**="": (default: 12m0s)
5959

60-
**--string-set**="": (default: 2024-10-20 22:40:00 +0200 CEST)
60+
**--string-set**="": (default: 2024-10-20 20:40:00 +0000 UTC)
6161

6262
**--string-set**="": (default: 21)
6363

0 commit comments

Comments
 (0)