diff --git a/models/shared.go b/models/shared.go index 8cb5712..92a715e 100644 --- a/models/shared.go +++ b/models/shared.go @@ -27,7 +27,7 @@ type KeyStringValue struct { type CustomTime time.Time func (j *CustomTime) UnmarshalJSON(b []byte) error { - s := strings.Replace(strings.Trim(string(b), "\""), ".", "", 1) // TODO: not always three decimal points! + s := strings.Replace(strings.Trim(string(b), "\""), ".", "", 1) i, err := strconv.ParseInt(s, 10, 64) if err != nil { return err