From 4500c2a3ba28a807e2f8febca7e48b5941b65252 Mon Sep 17 00:00:00 2001 From: Richard Lawley Date: Tue, 15 Mar 2016 08:11:42 +0000 Subject: [PATCH] Fix dates shown in history view --- html/includes/table/bills.inc.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/html/includes/table/bills.inc.php b/html/includes/table/bills.inc.php index 35ee255eec..73cdc706a5 100644 --- a/html/includes/table/bills.inc.php +++ b/html/includes/table/bills.inc.php @@ -83,9 +83,15 @@ if ($rowCount != -1) { } foreach (dbFetchRows($sql, $param) as $bill) { - $day_data = getDates($bill['bill_day']); - $datefrom = $day_data['0']; - $dateto = $day_data['1']; + if ($prev) { + $datefrom = $bill['bill_datefrom']; + $dateto = $bill['bill_dateto']; + } + else { + $day_data = getDates($bill['bill_day']); + $datefrom = $day_data['0']; + $dateto = $day_data['1']; + } $rate_95th = format_si($bill['rate_95th']) . 'bps'; $dir_95th = $bill['dir_95th']; $total_data = format_bytes_billing($bill['total_data']);