Changes
2 changed files (+2/-2)
-
-
@@ -118,7 +118,7 @@ func JSONGetTime(data []byte, prop string) time.Time {t := time.Time{} str, _ := jsonparser.GetUnsafeString(data, prop) t.UnmarshalText([]byte(str)) return t return t.UTC() } func JSONGetDuration(data []byte, prop string) time.Duration {
-
-
-
@@ -72,7 +72,7 @@ func writeFloatProp(b *[]byte, n string, f float64) (notEmpty bool) {return writeProp(b, n, []byte(fmt.Sprintf("%f", f))) } func writeTimeProp(b *[]byte, n string, t time.Time) (notEmpty bool) { if v, err := t.MarshalJSON(); err == nil { if v, err := t.UTC().MarshalJSON(); err == nil { return writeProp(b, n, v) } return false
-