Skip to content

Commit

Permalink
test(yaml): add positive timezone timestamp test (#5881)
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen authored Sep 2, 2024
1 parent 9ad71ee commit f86e911
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yaml/parse_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,16 @@ Deno.test({
parse(`
- 2001-12-15T02:59:43.1Z
- 2001-12-14t21:59:43.10-05:00
- 2001-12-14t21:59:43.10+05:00
- 2001-12-14 21:59:43.10 -5
- 2001-12-14 21:59:43.10 +5
- 2002-12-14`),
[
new Date(Date.UTC(2001, 11, 15, 2, 59, 43, 100)),
new Date("2001-12-14T21:59:43.100-05:00"),
new Date("2001-12-14T21:59:43.100+05:00"),
new Date("2001-12-14T21:59:43.100-05:00"),
new Date("2001-12-14T21:59:43.100+05:00"),
new Date("2002-12-14"),
],
);
Expand Down

0 comments on commit f86e911

Please sign in to comment.