Index: service/datastore/serialize/serialize.go |
diff --git a/service/datastore/serialize/serialize.go b/service/datastore/serialize/serialize.go |
index 0c58fcae712ce249acf633e5d0b7d089c7d8a415..baea9b328207cebe69a55f879ce7b0e97c41e71c 100644 |
--- a/service/datastore/serialize/serialize.go |
+++ b/service/datastore/serialize/serialize.go |
@@ -207,7 +207,11 @@ func ReadTime(buf Buffer) (time.Time, error) { |
if err != nil { |
return time.Time{}, err |
} |
- return time.Unix(v/1e6, (v%1e6)*1e3).UTC(), nil |
+ t := time.Unix(v/1e6, (v%1e6)*1e3) |
+ if t.IsZero() { |
+ return time.Time{}, nil |
+ } |
+ return t.UTC(), nil |
} |
// WriteProperty writes a Property to the buffer. `context` behaves the same |