mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-03 02:48:25 +00:00
feat: requestId time string use UTC
This commit is contained in:
@@ -263,7 +263,7 @@ func GetTimestamp() int64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetTimeString() string {
|
func GetTimeString() string {
|
||||||
now := time.Now()
|
now := time.Now().UTC()
|
||||||
return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9)
|
return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user