1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Store time in RFC3339Nano to keep nanoseconds

This commit is contained in:
theo-delaune-argus
2020-03-12 16:33:50 +01:00
parent 1c4dd844c4
commit fea610f7b4
4 changed files with 7 additions and 6 deletions

View File

@ -93,7 +93,7 @@ func (w *Writer) writeArg(v interface{}) error {
}
return w.int(0)
case time.Time:
return w.string(v.Format(time.RFC3339))
return w.string(v.Format(time.RFC3339Nano))
case encoding.BinaryMarshaler:
b, err := v.MarshalBinary()
if err != nil {