I am using LocalDate.toInterval() to compute 'all day' intervals as specified: "Converts this object to an Interval representing the whole day."
This works perfectly with one exception: on daylight cut days in a Brazilian timezone:
import org.joda.time.DateTimeZone;
import org.joda.time.Interval;
import org.joda.time.LocalDate;
import junit.framework.TestCase;
public...
> The instant 2009-10-18 00:00:00 doesn't exist - the daylight time change goes from 23:59:59 to 01:00:00 of the next day. That's the cause of the exception.
I agree with your diagnostic.
That said, we could expect another behaviour. LocalDate.toInterval() specification is "Converts this object to an Interval representing the whole day". While "00:00:00" does not...
I am using LocalDate.toInterval() to compute 'all day' intervals as specified: "Converts this object to an Interval representing the whole day."
This works perfectly with one exception: on daylight cut days in a Brazilian timezone:
import org.joda.time.DateTimeZone;
import org.joda.time.Interval;
import org.joda.time.LocalDate;
import junit.framework.TestCase;
public...