From 9b1a5cd640a69f6accb6e35eb02eebd35d8af338 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 2 Apr 2018 15:24:25 -0400 Subject: [PATCH] Bug 18674: Allow TZ SetEnv for plack It should also be noted that /etc/apache2/sites-enabled/{configuration file} should also contain: RequestHeader add X-Koha-SetEnv "TZ {timezone}" Where {timezone} is the desired instance timezone. Signed-off-by: Mark Tompsett Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- Koha/Middleware/SetEnv.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Middleware/SetEnv.pm b/Koha/Middleware/SetEnv.pm index 541040def6..6807392c1a 100644 --- a/Koha/Middleware/SetEnv.pm +++ b/Koha/Middleware/SetEnv.pm @@ -68,7 +68,8 @@ my $allowed_setenvs = qr/^( OVERRIDE_SYSPREF_NAMES | OPAC_CSS_OVERRIDE | OPAC_SEARCH_LIMIT | - OPAC_LIMIT_OVERRIDE + OPAC_LIMIT_OVERRIDE | + TZ )\ /x; sub call { -- 2.39.5