From af07ec2a6b8e7bfb3a54c4836b15e200c27f29a5 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sat, 30 Jun 2012 09:04:07 +1200 Subject: [PATCH] Bug 5644 : Fixing dropbox mode calculation Signed-off-by: Kyle M Hall Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- Koha/Calendar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index f63e7eb891..03146fa65b 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -93,7 +93,7 @@ sub addDate { Readonly::Scalar my $return_by_hour => 10; my $day_dur = DateTime::Duration->new( days => 1 ); if ( $add_duration->is_negative() ) { - $day_dur->inverse(); + $day_dur = DateTime::Duration->new( days => -1 ); } if ( $days_mode eq 'Datedue' ) { -- 2.20.1