Bugzilla – Attachment 82330 Details for
Bug 21829
Date displays as a datetime in notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21829: Correctly format dateexpiry in notices (date only)
Bug-21829-Correctly-format-dateexpiry-in-notices-d.patch (text/plain), 1.05 KB, created by
Jonathan Druart
on 2018-11-14 12:39:34 UTC
(
hide
)
Description:
Bug 21829: Correctly format dateexpiry in notices (date only)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-11-14 12:39:34 UTC
Size:
1.05 KB
patch
obsolete
>From 71565cb9bc3bc73cd4114217ea4206879a4f2c23 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 14 Nov 2018 09:38:01 -0300 >Subject: [PATCH] Bug 21829: Correctly format dateexpiry in notices (date only) > >dateexpiry is a date, we should not display the time >part in notice. > >Test plan: >Create a notice with borrowers.dateexpiry, generate this notice. >The value should be displayed without the time part >--- > C4/Letters.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 49355882ad..99ba2d46e0 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -879,7 +879,7 @@ sub _parseletter { > my $values = $values_in ? { %$values_in } : {}; > > if ( $table eq 'borrowers' && $values->{'dateexpiry'} ){ >- $values->{'dateexpiry'} = format_sqldatetime( $values->{'dateexpiry'} ); >+ $values->{'dateexpiry'} = output_pref({ dt => dt_from_string( $values->{'dateexpiry'} ), dateonly => 1 }); > } > > if ( $table eq 'reserves' && $values->{'waitingdate'} ) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21829
:
82329
|
82330
|
84965
|
84966
|
84967