mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 22:39:18 +08:00
8e6ee2b80f
* feat: v2 to v3 data conversion * feat: v2 to v3 data conversion
15 lines
207 B
Go
15 lines
207 B
Go
package utils
|
|
|
|
import "time"
|
|
|
|
func InitTime(ts ...*time.Time) {
|
|
for i := range ts {
|
|
if ts[i] == nil {
|
|
continue
|
|
}
|
|
if ts[i].IsZero() || ts[i].UnixMicro() < 0 {
|
|
*ts[i] = time.UnixMicro(0)
|
|
}
|
|
}
|
|
}
|