Переглянути джерело

feat: requestId time string use UTC

feitianbubu 1 місяць тому
батько
коміт
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)
 }