| Index: service/datastore/serialize/serialize.go
|
| diff --git a/service/datastore/serialize/serialize.go b/service/datastore/serialize/serialize.go
|
| index 9b7d7c7100091267ee3660f7f48c9e152d78c47a..88c887fc281cd8acd328b59337f909529e71b5c4 100644
|
| --- a/service/datastore/serialize/serialize.go
|
| +++ b/service/datastore/serialize/serialize.go
|
| @@ -198,17 +198,17 @@ func WriteTime(buf Buffer, t time.Time) error {
|
| if name != "UTC" || off != 0 {
|
| panic(fmt.Errorf("helper: UTC OR DEATH: %s", t))
|
| }
|
| - _, err := cmpbin.WriteUint(buf, uint64(t.Unix())*1e6+uint64(t.Nanosecond()/1e3))
|
| + _, err := cmpbin.WriteInt(buf, t.Unix()*1e6+int64(t.Nanosecond()/1e3))
|
| return err
|
| }
|
|
|
| // ReadTime reads a time.Time from the buffer.
|
| func ReadTime(buf Buffer) (time.Time, error) {
|
| - v, _, err := cmpbin.ReadUint(buf)
|
| + v, _, err := cmpbin.ReadInt(buf)
|
| if err != nil {
|
| return time.Time{}, err
|
| }
|
| - return time.Unix(int64(v/1e6), int64((v%1e6)*1e3)).UTC(), nil
|
| + return time.Unix(v/1e6, (v%1e6)*1e3).UTC(), nil
|
| }
|
|
|
| // WriteProperty writes a Property to the buffer. `context` behaves the same
|
|
|