fix time calc error

This commit is contained in:
MaysWind
2021-03-11 01:06:34 +08:00
parent a05fd00b42
commit d3d1bc59b2
@@ -171,7 +171,7 @@ func (r *DefaultRequestIdGenerator) getRequestId(serverUniqId uint16, instanceUn
func (r *DefaultRequestIdGenerator) getSecondsElapsedToday() int { func (r *DefaultRequestIdGenerator) getSecondsElapsedToday() int {
now := time.Now() now := time.Now()
seconds := now.Hour()*24*60 + now.Minute()*60 + now.Second() seconds := now.Hour()*60*60 + now.Minute()*60 + now.Second()
return seconds return seconds
} }