#define SRFSH_PORT 5222
#define COMMAND_BUFSIZE 4096
+static char* tz = NULL;
/* shell prompt */
static const char* prompt = "srfsh# ";
/* --------------------------------------------- */
/* see if they have a .srfsh.xml in their home directory */
char* home = getenv("HOME");
+ tz = getenv("TZ");
int l = strlen(home) + 36;
char fbuf[l];
snprintf(fbuf, sizeof(fbuf), "%s/.srfsh.xml", home);
session_is_temporary = 1; // just for this request
}
+ if (tz) osrf_app_session_set_tz(session,tz);
+
double start = get_timestamp_millis();
int req_id = osrfAppSessionSendRequest( session, params, method, 1 );