test(yaml): add positive timezone timestamp test (#5881)

This commit is contained in:
Tim Reichen 2024-09-02 04:22:12 +02:00 committed by GitHub
parent 9ad71ee178
commit f86e91119f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"),
],
);