Skip to content

Commit 3e69eb8

Browse files
committed
Support unserialization of time.Time instance
Fixes #522
1 parent 5fa0612 commit 3e69eb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scalars.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ func unserializeDateTime(value interface{}) interface{} {
547547
return nil
548548
}
549549
return unserializeDateTime([]byte(*value))
550+
case time.Time:
551+
return value
550552
default:
551553
return nil
552554
}

0 commit comments

Comments
 (0)