Skip to content

Commit f160eed

Browse files
tongyimingmikatong
and
mikatong
authored
fix(gaap): [123123123]update time layout (#2597)
* update time layout * add changelog --------- Co-authored-by: mikatong <[email protected]>
1 parent cf9f931 commit f160eed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changelog/2597.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_gaap_proxy: fix gaap time layout
3+
```

tencentcloud/internal/helper/helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ func BuildToken() string {
8080
}
8181

8282
func FormatUnixTime(n uint64) string {
83-
return time.Unix(int64(n), 0).UTC().Format("2006-01-02T03:04:05Z")
83+
return time.Unix(int64(n), 0).UTC().Format("2006-01-02T15:04:05Z")
8484
}
8585
func ParseTime(s string) (time.Time, error) {
86-
return time.ParseInLocation("2006-01-02T03:04:05Z", s, time.UTC)
86+
return time.ParseInLocation("2006-01-02T15:04:05Z", s, time.UTC)
8787
}
8888

8989
// compose all schema.SchemaValidateFunc to a schema.SchemaValidateFunc,

0 commit comments

Comments
 (0)