aboutsummaryrefslogtreecommitdiffstats
path: root/cdr/cdr_tds.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr/cdr_tds.c')
-rwxr-xr-xcdr/cdr_tds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c
index 1cdb72f68..cadb9dd62 100755
--- a/cdr/cdr_tds.c
+++ b/cdr/cdr_tds.c
@@ -372,7 +372,7 @@ static void get_date(char *dateField, struct timeval tv)
char buf[80];
/* To make sure we have date variable if not insert null to SQL */
- if (tv.tv_sec && tv.tv_usec)
+ if (!ast_tvzero(tv))
{
t = tv.tv_sec;
localtime_r(&t, &tm);