From 021b3319c08e1bb0d3527fcab0762a6aa35511d9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 27 Feb 2014 08:40:55 -0500 Subject: [PATCH] [PASSED QA] Bug 11694 [QA Followup] - Don't include time when converting date string to DateTime Signed-off-by: Katrin Fischer --- C4/Reserves.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 7a914e3..eb1ae2b 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1545,7 +1545,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.8.3.2