Skip to content

Commit 05dda62

Browse files
committed
Add a test with a negative offset and empty time for Date.parse()
1 parent f48516c commit 05dda62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Date/DateParse3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ runTest("2011-11-08 19:48:43.100", "2011-11-08T19:48:43.100");
2424
runTest("2011-11-08 19:48:43.1000", "2011-11-08T19:48:43.100");
2525
runTest("2011-11-08 19:48:43.12345", "2011-11-08T19:48:43.123");
2626

27-
runTest("2011-11-08+01:00", null); // previously the '+' or '-' would be skipped and the offset interpreted as a time
27+
// previously the '+' or '-' would be skipped and the offset interpreted as a time
28+
runTest("2011-11-08+01:00", null);
29+
runTest("2011-11-08-01:00", null);
2830

2931
function runTest(dateToTest, isoDate)
3032
{

0 commit comments

Comments
 (0)