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@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
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 {