From 0e18c97949a4c3d0a2da45242d87838ec96579e7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Feb 2020 16:49:12 +0100 Subject: [PATCH] test tz https://bugs.koha-community.org/show_bug.cgi?id=24455 --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 4 ++++ mainpage.pl | 3 +++ 2 files changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index f6a213523e..5b32b53f69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -212,6 +212,7 @@ [% MACRO jsinclude BLOCK %] + [% INCLUDE 'calendar.inc' %] diff --git a/mainpage.pl b/mainpage.pl index 49f46fc272..bd3dae3d78 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -75,6 +75,8 @@ my $pending_article_requests = Koha::ArticleRequests->search_limited( } )->count; +use Koha::DateUtils qw( dt_from_string output_pref ); +my $dt = dt_from_string; $template->param( pendingcomments => $pendingcomments, pendingtags => $pendingtags, @@ -82,6 +84,7 @@ $template->param( pending_borrower_modifications => $pending_borrower_modifications, pending_discharge_requests => $pending_discharge_requests, pending_article_requests => $pending_article_requests, + dt => output_pref({dt => $dt, dateformat => 'rfc3339', }), ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.11.0