Bug 5475 Wrong messages date formating on Check Out page

On the Check Out page, messages related to the borrower are displayed on the
right side. Message text is preceded by a date and library code. The date is
displayed in US format (mm/dd/YYY). Is should be displayed formated depending
on 'dateformat' syspref.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Frédéric Demians 2010-12-06 14:52:06 -05:00 committed by Chris Cormack
parent fefd158f42
commit 37a17d8fad

View file

@ -2073,7 +2073,7 @@ sub GetMessages {
my $query = "SELECT
branches.branchname,
messages.*,
DATE_FORMAT( message_date, '%m/%d/%Y' ) AS message_date_formatted,
message_date,
messages.branchcode LIKE '$branchcode' AS can_delete
FROM messages, branches
WHERE borrowernumber = ?
@ -2085,6 +2085,8 @@ sub GetMessages {
my @results;
while ( my $data = $sth->fetchrow_hashref ) {
my $d = C4::Dates->new( $data->{message_date}, 'iso' );
$data->{message_date_formatted} = $d->output;
push @results, $data;
}
return \@results;