You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Eyal Post <ey...@epocalipse.com> on 2009/01/18 17:25:27 UTC

TestLocalDateFormat failing

The above test fails if the user customizes the date format setting of the
en-us culture.
In my case, altough i'm using en-us, my date format is "dd/MM/yyyy" and in
that case the test fails. 
To fix the test, the following line should be changed in AssertHits() :

qp.SetLocale(new System.Globalization.CultureInfo("en-US"));
to:
qp.SetLocale(new System.Globalization.CultureInfo("en-US",false));

(passing false means don't use user overrides)
 
Regards,
Eyal Post