Merge pull request #1033 in FS/freeswitch from ~FRANCOIS/freeswitch-fs-9693:master to master

* commit '6e4e48c6beb0c792df0ca81693c709e9435b9223':
  FS-9693 use local time instead of utc for date-time comparison
This commit is contained in:
Brian West 2016-11-03 09:58:13 -05:00
commit 439731a211
1 changed files with 1 additions and 1 deletions

View File

@ -3049,7 +3049,7 @@ SWITCH_DECLARE(int) switch_xml_std_datetime_check(switch_xml_t xcond, int *offse
char tmpdate[80]; char tmpdate[80];
switch_size_t retsize; switch_size_t retsize;
switch_strftime(tmpdate, &retsize, sizeof(tmpdate), "%Y-%m-%d %H:%M:%S", &tm); switch_strftime(tmpdate, &retsize, sizeof(tmpdate), "%Y-%m-%d %H:%M:%S", &tm);
time_match = switch_fulldate_cmp(xdt, &ts); time_match = switch_fulldate_cmp(xdt, &tm);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
"XML DateTime Check: date time[%s] =~ %s (%s)\n", tmpdate, xdt, time_match ? "PASS" : "FAIL"); "XML DateTime Check: date time[%s] =~ %s (%s)\n", tmpdate, xdt, time_match ? "PASS" : "FAIL");
} }