Permalink
Browse files

Add a test with a negative offset and empty time for Date.parse()

  • Loading branch information...
mlfaw committed Nov 5, 2018
1 parent f48516c commit 05dda626e97ff3c1590d1b76a0afba8edcac181e
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/Date/DateParse3.js
View
@@ -24,7 +24,9 @@ runTest("2011-11-08 19:48:43.100", "2011-11-08T19:48:43.100");
runTest("2011-11-08 19:48:43.1000", "2011-11-08T19:48:43.100");
runTest("2011-11-08 19:48:43.12345", "2011-11-08T19:48:43.123");
runTest("2011-11-08+01:00", null); // previously the '+' or '-' would be skipped and the offset interpreted as a time
// previously the '+' or '-' would be skipped and the offset interpreted as a time
runTest("2011-11-08+01:00", null);
runTest("2011-11-08-01:00", null);
function runTest(dateToTest, isoDate)
{

0 comments on commit 05dda62

Please sign in to comment.