From 721096cd8cbeddb767e0c1ea59fd0acc87ffe05d Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 19 Mar 2012 14:01:14 +0100 Subject: [PATCH] Bug 7743: Update opac-tags.pl to use KohaDates TT plugin Signed-off-by: Marijana Glavica --- koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt | 4 +++- opac/opac-tags.pl | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt index e93e00ae71..c1ec0443f3 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt @@ -1,3 +1,5 @@ +[% USE KohaDates %] + [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Tags [% INCLUDE 'doc-head-close.inc' %] @@ -117,7 +119,7 @@ [% MY_TAG.bib_summary |html %] - [% MY_TAG.date_created_display %] + [% MY_TAG.date_created | $KohaDates %] [% END %] diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl index b5ce340b95..0953f822dd 100755 --- a/opac/opac-tags.pl +++ b/opac/opac-tags.pl @@ -39,7 +39,6 @@ use C4::Auth qw(:DEFAULT check_cookie_auth); use C4::Context; use C4::Debug; use C4::Output 3.02 qw(:html :ajax pagination_bar); -use C4::Dates qw(format_date); use C4::Scrubber; use C4::Biblio; use C4::Tags qw(add_tag get_approval_rows get_tag_rows remove_tag); @@ -232,7 +231,6 @@ if ($loggedinuser) { my $date = $_->{date_created} || ''; $date =~ /\s+(\d{2}\:\d{2}\:\d{2})/; $_->{time_created_display} = $1; - $_->{date_created_display} = format_date($_->{date_created}); } } -- 2.39.5