Yeah.. someone went and localized the h:mm(a<---) in java some time ago whose results are surprising. I am not completely convinced it (a) should be locale-specific (am/pm).
In my opinnion the expected is wrong here, but on the other hand I am not a linguist: http://bugs.sun.com/view_bug.do?bug_id=6610748 ** Martin 2010/3/2 Major Péter <[email protected]>: > Hi, > > Just for fun, I checked what's the last test, which fails > (testSimpleStaticTimeFrame). After some debugging I found out, that when > you creates timeFormat in org.apache.wicket.util.time.AbstractTime, then > you don't specify the Locale, so when you call setCalendar with > Locale.ENGLISH and parse in the testcase, then the formatter is still > running under the OS locale (in my case HU), and it tries to parse the > 'h.mma' format in it, but it fails, because this is not a valid format > in my locale. > So this is the source of the problem, now you need to only fix it. :) > (Or maybe remove the testcase if it's too specific?) > > Regards, > Peter > > > 2010-03-02 12:40 keltezéssel, Matej Knopp írta: >> All tests in Wicket Trunk pass (except that one ignored, whatever that is). >> Kudos to Igor! >> >> -Matej >
