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:
@ -671,7 +671,7 @@ func (cmd *StringCmd) Time() (time.Time, error) {
|
||||
if cmd.err != nil {
|
||||
return time.Time{}, cmd.err
|
||||
}
|
||||
return time.Parse(time.RFC3339, cmd.Val())
|
||||
return time.Parse(time.RFC3339Nano, cmd.Val())
|
||||
}
|
||||
|
||||
func (cmd *StringCmd) Scan(val interface{}) error {
|
||||
|
Reference in New Issue
Block a user