VarDateFromStr parses yyyy-mm-dd as yyyy-dd-mm in European locales

Nikolay Sivov bunglehead at
Sat Apr 23 12:43:43 CDT 2011

On 4/23/2011 19:00, John Fremlin wrote:
> Europeans write dates generally as dd-mm-yyyy. This makes sense. So does
> yyyy-mm-dd. Native will parse dates written yyyy-mm-dd correctly. Wine for some
> reasons assumes they are yyyy-dd-mm. This is not a date ordering used anywhere
> as far as I know and contradicts the MS behaviour.
> I've submitted
> I've included a patch which fixes the problem and adds a testcase. Is
> there anything I can do to improve the chances that this fairly
> unambiguous fix meets the next release? -- I have some secret and
> cunning plans which are unfortunately predicated on this being fixed.
> @@ -3458,6 +3458,7 @@ 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);
Hi, John.

This is locale-dependent thing, so it will need at least more tests for 
different locales (locales with different default month/day order I mean).

More information about the wine-devel mailing list