http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8110
--- Comment #34 from Julian Maurice <[email protected]> --- (In reply to comment #31) > Julian, is this new patch what you are looking for, or have I just moved > code around without solving the problem? DateTime::Duration is just a hash that looks like this: $VAR1 = bless( { 'seconds' => 20, 'minutes' => 106, 'end_of_month' => 'wrap', 'nanoseconds' => 0, 'days' => 8, 'months' => 380 }, 'DateTime::Duration' ); You can't say with only these informations how many days it is. This is the problem: we cannot use DateTime::Duration for telling us how many days there are between two dates. I think we can use Date::Calc::Delta_Days for this (and Delta_DHMS for hours_between). I would be happy to propose a patch, but I've not enough time to do it right now and can't do it next week either. So I hope this helps. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
