]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1485371: Use client-supplied TZ
authorMike Rylander <mrylander@gmail.com>
Mon, 3 Aug 2015 17:27:56 +0000 (13:27 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 12 Aug 2016 17:31:07 +0000 (13:31 -0400)
commit91a8f051220ba1b29e76068a58cbb400ae521834
tree949b58769a143ccd56235943b4954b6a353525dc
parente7fe347408b52295f2f820f9527ccf00952b71e8
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>
Signed-off-by: Galen Charlton <gmc@esilibrary.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