Skip to content

Commit

Permalink
Fixes #357
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxInertia authored Oct 4, 2019
1 parent 38a077b commit 5fe34fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (t *Time) UnmarshalGraphQL(input interface{}) error {
var err error
t.Time, err = time.Parse(time.RFC3339, input)
return err
case int:
case int32, int64:
t.Time = time.Unix(int64(input), 0)
return nil
case float64:
Expand Down

0 comments on commit 5fe34fd

Please sign in to comment.