From: Bill Erickson Date: Thu, 11 Jul 2019 21:22:56 +0000 (-0400) Subject: LP1825851 server print additions WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e7d3788cd620fb1ae374a703f59b9e6b5c3ebdb9;p=working%2FEvergreen.git LP1825851 server print additions WIP Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/PrintTemplate.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/PrintTemplate.pm index 4d42802e56..be76da0ce4 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/PrintTemplate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/PrintTemplate.pm @@ -55,9 +55,7 @@ sub handler { unless $e->checkauth && $e->requestor->wsid; # Let pcrud handle the authz - # TODO: setting ->personality applies globally which breaks other - # Apache mod_perl handlers. Allow for per-editor personalities. - #$e->personality('open-ils.pcrud'); + $e->personality('open-ils.pcrud'); my $tmpl_owner = $cgi->param('template_owner') || $e->requestor->ws_ou; my $tmpl_locale = $cgi->param('template_locale') || 'en-US'; @@ -192,11 +190,8 @@ $helpers = { my $date = shift; my $tz = shift; - $logger->info("setting TZ = $tz"); - $date = DateTime::Format::ISO8601->new->parse_datetime(clean_ISO8601($date)); $date->set_time_zone($tz) if $tz; - $logger->info("setting TZ XXX = $tz"); return sprintf( "%0.2d:%0.2d:%0.2d %0.2d-%0.2d-%0.4d",