Sfoglia il codice sorgente

feat: requestId time string use UTC

feitianbubu 3 settimane fa
parent
commit
151d7bedae
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)
 }