Explorar el Código

feat: requestId time string use UTC

feitianbubu hace 1 mes
padre
commit
151d7bedae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 }