Skip to content

Commit

Permalink
update create time parse code
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceybian committed Feb 5, 2024
1 parent 8a36d04 commit 41228d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tencentcloud/common/resource_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func ParsedTime(createTime string) (*time.Time, error) {
} else {
// try parsing input strings using different time formats
for _, format := range TimeFormats {
parsedTime, err = time.Parse(format, createTime)
parsedTime, err = time.ParseInLocation(format, createTime, time.Local)
if err == nil {
break
}
Expand Down

0 comments on commit 41228d7

Please sign in to comment.