[asterisk-dev] CDR and daylight savings time
Russell Bryant
russell at digium.com
Sun Dec 31 18:08:43 MST 2006
Hans Petter Selasky wrote:
> What happens if users are calling during the time when daylight savings are
> enabled/disabled, with regard to CDR: Does the user get charged one hour
> negative or one hour positive, depending on the time-shift?
>
> From examining the code, this seems to be the case:
>
> gettimeofday(&cdr->start, NULL);
> gettimeofday(&cdr->answer, NULL);
> gettimeofday(&cdr->end, NULL);
This is an example of why you shouldn't have your system clock set to local
time. Your system should be UTC so that you don't have this problem.
--
Russell Bryant
Software Engineer
Digium, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: russell.vcf
Type: text/x-vcard
Size: 266 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20061231/1abf3ccd/russell.vcf
More information about the asterisk-dev
mailing list