Hi all, First thx to all your great work, nive to have good java library to manage dates (and not having to use Calendars) :)
Anyway, i have a strange behavior with Days.daysBetween. when i use a pseudo-normalization code (to manually force java.sql.dates to 00:00 GMT) : public static java.sql.Date toSqlDate(final DateTime parDateTime) { return (normalizeDate(new java.sql.Date(parDateTime.getMillis()))); } Days.daysBetween don't give the same results using LocalDate and DateTime for 2 tests (the last one always works) and when i remove the normalisation : public static java.sql.Date toSqlDate(final DateTime parDateTime) { return new java.sql.Date(parDateTime.getMillis()); } it works I don't understand why TimeZones can impact Days.daysBetween when : - i only use dates on same TimeZone - at the same hour (midnight GMT) Who can explain me this behavior ? Note : The code using LocalDate (getLocalIntDaysCountBetween) always give me the right result Regards, Raphael
DateTest.java
Description: Binary data
------------------------------------------------------------------------- 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