FS-6413 update presence_epoch to lock to midnite

This commit is contained in:
Anthony Minessale 2014-05-02 23:49:41 +05:00
parent c44404d45d
commit 607247397c
1 changed files with 1 additions and 1 deletions

View File

@ -5564,7 +5564,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load)
now = switch_epoch_time_now(NULL);
tm = *(localtime(&now));
mod_sofia_globals.presence_epoch = now - (tm.tm_yday * 86400);
mod_sofia_globals.presence_epoch = now - (tm.tm_yday * 86400) - (tm.tm_hour * 60 * 60) - (tm.tm_min * 60) - tm.tm_sec;
switch_find_local_ip(mod_sofia_globals.guess_ip, sizeof(mod_sofia_globals.guess_ip), &mod_sofia_globals.guess_mask, AF_INET);
in.s_addr = mod_sofia_globals.guess_mask;