I could be something with the time zone: this fails aswell:
PatternDateConverter converter=new PatternDateConverter("HH:mm", false); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=converter.convertToString(dateModified, new Locale("da_DK")); Assert.assertTrue("00:00".equalsIgnoreCase(result)); pretty strange. BUT this does not: @Test public void testSimpleDateformatter(){ SimpleDateFormat sdf=new SimpleDateFormat("HH:mm"); Calendar instance = Calendar.getInstance(); instance.set(1900, 0, 1, 0, 0,0); Date dateModified=instance.getTime(); String result=sdf.format(dateModified); Assert.assertTrue("00:00".equalsIgnoreCase(result)); } 2012/4/16 Hans Lesmeister 2 <hans.lesmeis...@lessy-software.de> > Hi, > > if I run your test, the result is just a space. > If I change the Date-Pattern to "HH:mm", the test goes green > May be you are in the wrong time-zone... :-) > > ----- > -- > Regards, > Hans > > http://cantaa.de > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/1-5-Stared-blind-patterndateconverter-tp4561565p4561641.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards / Med venlig hilsen Nino Martinez