sipcapture/homer-api

PostgreSQL kamailio.cfg timestamp issue again

dpocock opened this issue · 1 comments

It looks like the column types changed in the latest schema, so these need to replace the earlier fix:

    #$var(t_date) = "to_char(date(to_timestamp(" + $var(t1) + ")), '%Y-%m-%d %H:%i:00')";
    $var(t_date) = "to_timestamp(" + $var(t1) + ")";

    #$var(f_date) = "to_char(date(to_timestamp(" + $var(t2) + ")), '%Y-%m-%d %H:%i:00')";
    $var(f_date) = "to_timestamp(" + $var(t2) + ")";