Commit 66c42df0 authored by John Fremlin's avatar John Fremlin Committed by Alexandre Julliard

oleau32: Stop incorrectly parsing dates in bogus YDM order in European locales.

parent a5fbbbe4
......@@ -3458,6 +3458,9 @@ static void test_VarDateFromStr(void)
DFS("02.01.1970"); EXPECT_DBL(25570.0);
DFS("02.13.1970"); EXPECT_DBL(25612.0);
DFS("02-13-1970"); EXPECT_DBL(25612.0);
DFS("2020-01-11"); EXPECT_DBL(43841.0);
DFS("2173-10-14"); EXPECT_DBL(100000.0);
DFS("02.01.1970 00:00:00"); EXPECT_DBL(25570.0);
lcid = MAKELCID(MAKELANGID(LANG_SPANISH,SUBLANG_SPANISH),SORT_DEFAULT);
DFS("02.01.1970"); EXPECT_MISMATCH;
......
......@@ -7282,7 +7282,7 @@ VARIANT_MakeDate_Start:
switch (iDate)
{
case 0: dwTry = dwAllOrders & ~(ORDER_DMY|ORDER_YDM); break;
case 1: dwTry = dwAllOrders & ~(ORDER_MDY|ORDER_YMD|ORDER_MYD); break;
case 1: dwTry = dwAllOrders & ~(ORDER_MDY|ORDER_YDM|ORDER_MYD); break;
default: dwTry = dwAllOrders & ~(ORDER_DMY|ORDER_YDM); break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment