Skip to content

Commit bfa4ca0

Browse files
authored
Merge pull request #1 from solocommand/date-parsing
Ensure the value is returned as a date
2 parents bcb23f3 + d0f917a commit bfa4ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = new GraphQLScalarType({
1414
},
1515
parseLiteral(ast) {
1616
if (ast.kind === Kind.INT) {
17-
return parseInt(ast.value, 10);
17+
return new Date(parseInt(ast.value, 10));
1818
}
1919
return null;
2020
},

0 commit comments

Comments
 (0)