Преглед изворни кода

feat: requestId time string use UTC

feitianbubu пре 4 недеља
родитељ
комит
151d7bedae
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/utils.go

+ 1 - 1
common/utils.go

@@ -263,7 +263,7 @@ func GetTimestamp() int64 {
 }
 
 func GetTimeString() string {
-	now := time.Now()
+	now := time.Now().UTC()
 	return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9)
 }