lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eyal Post" <eyalp...@epocalipse.com>
Subject TestLocalDateFormat failing
Date Sun, 18 Jan 2009 16:25:27 GMT
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


Mime
View raw message