On 08/02/2008, Paulo Neves <[EMAIL PROTECTED]> wrote: > First, I want to know how to use correctly DateMidnight with a Brazil > timezone. > DateMidnight dt3 = new DateMidnight(2007,10,13,dtz);
Some dates cannot be created in a DateMidnight, as the time 00:00 does not exist due to DST. This is a design flaw in DateMidnight, and we cannot easily rectify it. (Setting the time to 01:00 doesn't make sense if the class is called date 'midnight') You should consider why you are using DateMidnight. In most cases, you should hold a date in a LocalDate, or hold a date+time in a DateTime. Stephen ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest