Hello,<br><br> I noticed a difference between FreeSWITCH time and system clock time.<br> Is this a standard behaviour? or something is wrong in my system?<br><br>More details of the issue:<br> Inside FreeSWITCH I look for current epoch time using this function:<br>
<span style="font-family:courier new,monospace">time_t now = switch_epoch_time_now(NULL);</span><br><br> Then I look for system clock current time using:<br><span style="font-family:courier new,monospace">#include <time.h></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">time_t now = time(NULL);</span><br><br> Between both results I noticed a difference of 9 seconds.<br><br><br>This can also be viewed using Unix commands.<br><br>Unix date command from console:<br>
<span style="font-family:courier new,monospace"># date +%s</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1314741992</span><br><br>Then, I start a call and make a DB query:<br>
<span style="font-family:courier new,monospace"># sqlite3 /var/freeswitch/db/core.db "SELECT call_created_epoch FROM calls;"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1314742000</span><br>
<br>Then I repeat unix date command:<br><span style="font-family:courier new,monospace"># date +%s</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
1314741994</span><br><br>Any comments are welcome.<br>Regards,<br>Glaucio<br>