Summary:ASTERISK-03425: [patch] Keeping CDR time in GMT
Reporter:constfilin (constfilin)Labels:
Date Opened:2005-02-03 04:55:34.000-0600Date Closed:2008-01-15 15:24:19.000-0600
Versions:Frequency of
Environment:Attachments:( 0) cdr_odbc.conf.sample.diff
( 1) cdr_odbc.diff

The attached patch adds a variable in cdr_odbc.conf that
lets CDRs be recorded in GMT time, not local time.

This is convenient when there is a farm of asterisk
servers each in different time zone, each logging the
CDR into the same database.


My disclaimer is on file with Digium
Comments:By: Andrey S Pankov (casper) 2005-02-03 07:00:32.000-0600

Original idea is from ASTERISK-3343377, right?

And please add diff for cdr_odbc.conf.sample. Thanks.

By: constfilin (constfilin) 2005-02-03 15:42:33.000-0600

Added cdr_odbc.conf.sample.diff as requested.
Actually I didn't see ASTERISK-3343377 before you pointed me to it.

edited on: 02-03-05 21:07

By: nick (nick) 2005-02-03 20:16:50.000-0600

Kinda pedantic, but isn't the correct name for this UTC?

By: () 2005-02-03 20:46:30.000-0600

UTC is not accepted worldwide. Most countries still use GMT

By: constfilin (constfilin) 2005-02-03 22:59:07.000-0600

I do not mind using UTC but how do I convert a local time on a box
to UTC time? There is "gmtime" function but there is no "utctime".

Meanwhile, it would be great to have it in CVS. I can submit the UTC
patch later on.

By: Mark Spencer (markster) 2005-02-03 23:51:52.000-0600

Added to CVS with significant mods.

By: Russell Bryant (russell) 2005-02-06 22:14:22.000-0600

not in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:24:19.000-0600

Repository: asterisk
Revision: 4962

U   trunk/cdr/cdr_odbc.c
U   trunk/configs/cdr_odbc.conf.sample

r4962 | markster | 2008-01-15 15:24:18 -0600 (Tue, 15 Jan 2008) | 2 lines

Optionally store CDR's in GM time (bug ASTERISK-3425, with mods)