[Freeswitch-dev] Epoch current time difference

Michael Giagnocavo mgg at giagnocavo.net
Wed Dec 14 19:49:47 MSK 2011

Daylight saving should never modify the time, as for anything like this, one should be using UTC time, or local time with a UTC offset. Any software that computes a duration differently because of DST cannot blame the system: it is very, very, broken. (Although, I'll bet there's more than one company out there with broken CDR software. In fact, I came across such a program and asked the developers about it. They said "not a problem; the system crashes when there's a DST shift, so we never have to deal with those records.")

The only reason I can think of for the time values to jump around is if your clock is way out of sync and you force a large NTP jump. But in that case, you're sorta out of luck anyways.


From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Wednesday, December 14, 2011 9:32 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] Epoch current time difference

I feel I have explained this many times.  Too bad it never makes it to a wiki or faq.

Allowing any software to trust the system time is very dangerous.  Something that was depending on the system time to calculate a duration etc can be considerably compromised if the time suddenly changes by hours or years in either direction.
Things like daylights savings time can break CDR etc.

The clock in FS is the onboard monotonic clock and the offset to real time is preserved.  If you want FS to sync to system time when desired there are commands to perform this operation.

On Wed, Dec 14, 2011 at 10:21 AM, Cavalera Claudio Luigi <Claudio.Cavalera at italtel.it<mailto:Claudio.Cavalera at italtel.it>> wrote:
> -----Original Message-----
> I don't know what your environment is like, but if you can get away
> with keeping NTP running on the server and issue a sync_clock nightly,
> that might be the best thing.  I can think of 3 or 4 other systems
> that could fail unexpectedly due to time drift like that.  At the very
> least, it makes it so that all of your logs have correct timestamps :)
> Gabe
sorry for "hijacking" this thread.
Can someone please explain why FS keeps its own time ?
As far as I know on vmware machines you can't avoid using NTP if you
want to keep your system clock and with automatic daylight changes i've
seen a difference of one hour between system time and freeswitch time.


Internet Email Confidentiality Footer
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.

Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>

Official FreeSWITCH Sites

FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>

Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111214/a61cd6c3/attachment-0001.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list