[asterisk-dev] CDR and daylight savings time

Hans Petter Selasky hselasky at c2i.net
Sun Dec 31 17:35:32 MST 2006


Hi,

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);

--HPS


More information about the asterisk-dev mailing list