Maybe because computers started care about time since Jan 1 1970 ? :-) On Mon, Apr 16, 2012 at 4:42 PM, nino martinez wael <nino.martinez.w...@gmail.com> wrote: > I've been looking at this for too long, > > why does this test fail, why does result becomes "23:09" ? > > @Test > public void testPatternConverter(){ > PatternDateConverter converter=new PatternDateConverter(" ", false); > Calendar instance = Calendar.getInstance(); > instance.set(1900, 0, 1, 0, 0,0); > Date dateModified=instance.getTime(); > String result=converter.convertToString(dateModified, Locale.ENGLISH); > Assert.assertTrue("00:00".equalsIgnoreCase(result)); > > } > > -- > Best regards / Med venlig hilsen > Nino Martinez
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org