Skip to content

Commit

Permalink
Support unserialization of time.Time instance
Browse files Browse the repository at this point in the history
Fixes #522
  • Loading branch information
asaf committed Oct 28, 2019
1 parent 5fa0612 commit 3e69eb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scalars.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ func unserializeDateTime(value interface{}) interface{} {
return nil
}
return unserializeDateTime([]byte(*value))
case time.Time:
return value
default:
return nil
}
Expand Down

0 comments on commit 3e69eb8

Please sign in to comment.