From e814c4353c89cd8ff54e36078e0348739ba1b046 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 30 Jul 2010 10:01:52 +0000 Subject: [PATCH] fix horrible bug returning incorrect start times for graphs in the billing pages git-svn-id: http://www.observium.org/svn/observer/trunk@1537 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bill.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 486ee2a5f3..23d214a390 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -11,7 +11,7 @@ $yesterday = str_replace("-", "", mysql_result(mysql_query("SELECT DATE_SUB(CURD $tomorrow = str_replace("-", "", mysql_result(mysql_query("SELECT DATE_ADD(CURDATE(), INTERVAL 1 DAY)"), 0)); $last_month = str_replace("-", "", mysql_result(mysql_query("SELECT DATE_SUB(CURDATE(), INTERVAL 1 MONTH)"), 0)); -$now = $today . date(His); +$rightnow = $today . date(His); $before = $yesterday . date(His); $lastmonth = $last_month . date(His); @@ -143,14 +143,14 @@ $bi = $bi . "$type'>"; $lastmonth = mysql_result(mysql_query("SELECT UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 1 MONTH))"), 0); $yesterday = mysql_result(mysql_query("SELECT UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 1 DAY))"), 0); -$now = date(U); +$rightnow = date(U); $di = ""; $mi = ""; if($null) { @@ -180,7 +180,7 @@ echo(" if ($_GET[all]) { $ai = ""; echo("

Entire Data View

$ai");