Skip to content

Commit 2e2b648

Browse files
authored
Merge pull request #523 from asaf/dateTimeUnserializationTimeInstanceFix
Support unserialization of time.Time instance
2 parents 14904e6 + 05d6d76 commit 2e2b648

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)