From c4f035fc347488fc2d781cc05daf43bf0114e992 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 27 Feb 2014 08:40:55 -0500 Subject: [PATCH] Bug 11694 [QA Followup] - Don't include time when converting date string to DateTime --- C4/Reserves.pm | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 8fe0fd0..724b4e3 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1537,7 +1537,13 @@ be cleared when it is unsuspended. sub ToggleSuspend { my ( $reserve_id, $suspend_until ) = @_; - $suspend_until = output_pref({ dt => dt_from_string( $suspend_until ), dateformat => 'iso' }) if ( $suspend_until ); + $suspend_until = output_pref( + { + dt => dt_from_string($suspend_until), + dateformat => 'iso', + dateonly => 1 + } + ) if ($suspend_until); my $do_until = ( $suspend_until ) ? '?' : 'NULL'; -- 1.7.2.5