MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / tz_reset

Function tz_reset

time_rec.c:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229
230void tz_reset(void)
231{
232 if (old_tz == TZ_INTACT)
233 return;
234
235 if (!old_tz) {
236 LM_DBG("resetting timezone to system default\n");
237 unsetenv("TZ");
238 } else {
239 LM_DBG("resetting timezone to '%s'\n", old_tz);
240 setenv("TZ", old_tz, 1);
241 }
242
243 tzset();
244 old_tz = TZ_INTACT;
245}
246
247
248time_t tz_adjust_ts(time_t unix_time, const str *tz)

Callers 7

tr_eval_stringFunction · 0.85
tz_adjust_tsFunction · 0.85
_tmrec_parseFunction · 0.85
_tmrec_checkFunction · 0.85
_tz_offsetFunction · 0.85
test_tz_dynamicFunction · 0.85
test_check_single_tmrecFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_tz_dynamicFunction · 0.68
test_check_single_tmrecFunction · 0.68