]> git.ipfire.org Git - thirdparty/asterisk.git/commit
funcs/func_cdr: Handle empty time values when extracting parsed values
authorMatthew Jordan <mjordan@digium.com>
Fri, 7 Feb 2014 19:36:15 +0000 (19:36 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 7 Feb 2014 19:36:15 +0000 (19:36 +0000)
commitd8ef1239ae620ab8ce95be26822cfd84bb0a2527
treec7681457a4ace684702e64d14d2f6b13764baa08
parent723b89510dc76887cfc3218a2935fa857a9ab1a4
funcs/func_cdr: Handle empty time values when extracting parsed values

When extracting timestamps that are parsed, time stamp values that are not set
(time values of 0.000000) should not actually result in a parsed string. The
value should be skipped, and the result of the CDR function should be an
empty string.

Prior to this patch, the result was fed to the time formatting, which would
result in an output of a date/time in 1969.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@407747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_cdr.c