[Koha-patches] [PATCH] fix date formatting in overdue_notices.pl
Jesse Weaver
jesse.weaver at liblime.com
Fri Sep 26 21:57:25 CEST 2008
From: Pianohacker <pianohacker at gmail.com>
This makes overdue_notices.pl format dates in fields that both start and end with 'date'.
---
misc/cronjobs/overdue_notices.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 225a41f..52d8abc 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -363,7 +363,7 @@ END_SQL
$sth2->execute( $borrowernumber, $mindays, $maxdays );
my $titles = "";
while ( my $item_info = $sth2->fetchrow_hashref() ) {
- my @item_info = map { $_ =~ /date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
+ my @item_info = map { $_ =~ /^date|date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
$titles .= join("\t", @item_info) . "\n";
}
$sth2->finish;
--
1.5.4.3
More information about the Koha-patches
mailing list