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

Function tz_set

time_rec.c:203–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201static char *old_tz = TZ_INTACT;
202
203void tz_set(const str *tz)
204{
205#define TZBUF_SZ 50
206 char tzbuf[TZBUF_SZ];
207
208 if (tz->len >= TZBUF_SZ)
209 return;
210
211 memcpy(tzbuf, tz->s, tz->len);
212 tzbuf[tz->len] = '\0';
213
214 _tz_set(tzbuf);
215#undef TZBUF_SZ
216}
217
218
219void _tz_set(const char *tz)

Callers 1

tz_adjust_tsFunction · 0.85

Calls 1

_tz_setFunction · 0.85

Tested by

no test coverage detected