Skip to content

Commit

Permalink
test: fix tz test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkaradachki committed May 17, 2018
1 parent bdad8ad commit 93e79c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ describe('date parsing', () => {
});

it("parses iso8601 with 2 digit milliseconds and timezone without specified format", () => {
expect(parseDate("2000-10-10T14:30:00.03+02:00")).toEqual(new Date(2000, 9, 10, 15, 30, 0, 30));
expect(+parseDate("2000-10-10T14:30:00.03+02:00")).toEqual(Date.parse("2000-10-10T14:30:00.03+02:00"));
});

it("parses datetime with timezone offset (hours)", () => {
Expand Down

0 comments on commit 93e79c8

Please sign in to comment.