Selaa lähdekoodia

feat: requestId time string use UTC

feitianbubu 1 kuukausi sitten
vanhempi
commit
151d7bedae
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
 }