]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9693 use local time instead of utc for date-time comparison
authorFrançois <fdelawarde@wirelessmundi.com>
Thu, 3 Nov 2016 14:53:02 +0000 (15:53 +0100)
committerFrançois <fdelawarde@wirelessmundi.com>
Thu, 3 Nov 2016 14:53:02 +0000 (15:53 +0100)
src/switch_xml.c

index ffcdd8b15f0a51f9a4904a14d22601f76c438c22..91ace3374c99e0ef61bf77d1bb2da669b8227d45 100644 (file)
@@ -3049,7 +3049,7 @@ SWITCH_DECLARE(int) switch_xml_std_datetime_check(switch_xml_t xcond, int *offse
                char tmpdate[80];
                switch_size_t retsize;
                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,
                                "XML DateTime Check: date time[%s] =~ %s (%s)\n", tmpdate, xdt, time_match ? "PASS" : "FAIL");
        }