[OpenSRF-GIT] OpenSRF branch rel_2_5 updated. osrf_rel_2_5_2-1-gfec35ab

Evergreen Git git at git.evergreen-ils.org
Mon Apr 30 20:58:33 EDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, rel_2_5 has been updated
       via  fec35ab4120b22377e43807718361586cfa57516 (commit)
      from  2bc1ff76ded6967ebc4a7e469d93ee4f614d736e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fec35ab4120b22377e43807718361586cfa57516
Author: Bill Erickson <berickxx at gmail.com>
Date:   Tue Apr 10 15:06:56 2018 -0400

    LP#1762815 Empty client TZ defaults to server TZ (Perl)
    
    Fixes an issue in the Perl client time zone handling that resulted in
    the server defaulting to UTC time instead of the server time zone when
    no time zone value was received from the client.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm b/src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm
index 33675a8..b84c80c 100644
--- a/src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm
+++ b/src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm
@@ -244,6 +244,7 @@ sub handler {
 
 	if( $val ) {
 		local $ENV{TZ} = $tz || $ENV{TZ}; # automatic revert at the end of this scope
+		delete $ENV{TZ} unless $ENV{TZ}; # avoid UTC fall-back
 		tzset();
 		return OpenSRF::Application->handler($session, $self->payload);
 	} else {

-----------------------------------------------------------------------

Summary of changes:
 src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list