LP#1485371: Use client-supplied TZ
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Aug 2015 17:27:56 +0000 (13:27 -0400)
committerMike Rylander <mrylander@gmail.com>
Sun, 16 Aug 2015 20:29:44 +0000 (16:29 -0400)
commit229d54c8cfbde710737a18f99019a5682c18f3d3
tree49f370555185a3413b1122612c402920149f96c6
parent33a5e60ee8f4c539d5bf3dc1d1ff1b62d5715d65
LP#1485371: Use client-supplied TZ

Currently, there is no protocol-level mechanism for passing the client's
desired timezone to the server. In much the same way we pass the locale,
we can let the server know what timezone it should use when interpreting
time stamps.

To do this we:

 * Teach perl server code to live in the client TZ, if supplied
 * Teach perl client code to send the current $ENV{TZ}
 * Teach javascript library to include client TZ in
   gateway/translator/websocket communication
 * Teach C code to pull the incoming TZ and apply it to outgoing messages
 * Teach srfsh to pull TZ from the environment and pass it with requests

Signed-off-by: Mike Rylander <mrylander@gmail.com>
include/opensrf/osrf_app_session.h
include/opensrf/osrf_message.h
src/javascript/opensrf.js
src/libopensrf/osrf_app_session.c
src/libopensrf/osrf_message.c
src/libopensrf/osrf_stack.c
src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm
src/srfsh/srfsh.c