Chronology zone = LenientChronology.getInstance(ISOChronology.getInstanceUTC());
DateTime dt = new DateTime(2007, 1, 1, 0, 0 ,0, 0, zone);
assertEquals("2007-01-01T00:00:00.000Z", dt.toString());
dt = dt.withHourOfDay(24);
assertEquals("2007-01-02T00:00:00.000Z", dt.toString());
dt = dt.withHourOfDay(-1);
assertEquals("2007-01-01T23:00:00.000Z", dt.toString());
}
//-----------------------------------------------------------------------
//------------------------ Bug ------------------------------------------