[Asterisk-cvs] asterisk/cdr cdr_odbc.c,1.13,1.14

markster at lists.digium.com markster at lists.digium.com
Thu Jul 8 09:32:17 CDT 2004


Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv4267/cdr

Modified Files:
	cdr_odbc.c 
Log Message:
Merge bkw_'s ODBC patch


Index: cdr_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_odbc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- cdr_odbc.c	9 Jun 2004 01:45:07 -0000	1.13
+++ cdr_odbc.c	8 Jul 2004 13:18:04 -0000	1.14
@@ -59,12 +59,8 @@
 	char sqlcmd[2048], timestr[128];
 	int res = 0;
 	struct tm tm;
-	struct timeval tv;
-	time_t t;
 
-	gettimeofday(&tv,NULL);
-	t = tv.tv_sec;
-	localtime_r(&t,&tm);
+	localtime_r(&cdr->start.tv_sec,&tm);
 
 	ast_mutex_lock(&odbc_lock);
 	strftime(timestr,128,DATE_FORMAT,&tm);




More information about the svn-commits mailing list