Skip to content

Commit 57ce386

Browse files
author
mikatong
committed
update time layout
1 parent cf9f931 commit 57ce386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)