Commit 21c0a51d by feitianbubu

feat: requestId time string use UTC

parent 979c8198
...@@ -263,7 +263,7 @@ func GetTimestamp() int64 { ...@@ -263,7 +263,7 @@ func GetTimestamp() int64 {
} }
func GetTimeString() string { func GetTimeString() string {
now := time.Now() now := time.Now().UTC()
return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9) return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment