From 25ba883f77d982accc05bb00195af7d2fe8feddc Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Fri, 21 Oct 2011 12:38:11 +0000 Subject: [PATCH] treat cdr.start_time as decimal and write timestamp with msec to csv file --- cdr-exporter.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdr-exporter.pl b/cdr-exporter.pl index 27cbf59..33d452f 100755 --- a/cdr-exporter.pl +++ b/cdr-exporter.pl @@ -125,7 +125,7 @@ my @CDR_BODY_FIELDS = qw(id update_time source_user_id source_provider_id source destination_user_in, destination_domain_in, peer_auth_user, peer_auth_realm, call_type, call_status, - call_code, start_time, + call_code, CONCAT(FROM_UNIXTIME(start_time), '.', SUBSTRING_INDEX(start_time, '.', -1)) AS start_time, duration, call_id, rating_status, rated_at, carrier_cost, reseller_cost,