From: Mike Rylander Date: Fri, 11 Sep 2015 15:19:34 +0000 (-0400) Subject: LP#1485374: Allow server timezone via CStoreEditor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d63fb2b41e4644cb259d9fb025d73313c4a74c52;p=working%2FEvergreen.git LP#1485374: Allow server timezone via CStoreEditor In rare cases, the server's timezone may be preferable to the client's. To plan for such cases we provide a way to signal that we want to use the server's timezone. Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm index d1a935e4bb..e381b21996 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm @@ -797,6 +797,8 @@ sub runmethod { $method .= '.atomic'; } + local $ENV{TZ} = $$options{no_tz} ? undef : $ENV{TZ}; + $method =~ s/search/id_list/o if $options->{idlist}; $method =~ s/\.atomic$//o if $self->substream($$options{substream} || 0);