[sr-dev] [kamailio/kamailio] db_mysql: Let the database convert the timestamp (#957)

Holger Freyther notifications at github.com
Mon Jan 30 14:45:52 CET 2017


Instead of using the time2str routines that go through timezone
conversion in kamailio, let MySQL do it. This helps with the
sipcapture module in case the system time is CET but the database
is operated in UTC. In these cases the micro_ts and date columns
would be offseted by the timezone difference and look-ups fail
to work.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/957

-- Commit Summary --

  * db_mysql: Let the database convert the timestamp

-- File Changes --

    M src/modules/db_mysql/km_val.c (18)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/957.patch
https://github.com/kamailio/kamailio/pull/957.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/957
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170130/31ea7485/attachment.html>


More information about the sr-dev mailing list