From 21f4a60a386a4c49425548d7b08c604d4d05c1f0 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 28 Oct 2018 02:43:00 -0500 Subject: [PATCH] max time --- app/Library/MoonCalc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index a75d31313..87aa41af9 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -142,11 +142,11 @@ class MoonCalc { $config = DB::table('Config')->first(); //Calculate refine rate $refineRate = $config->RefineRate / 100.00; - dd($refineRate); //Calculate the current time $time = time(); //Get the max time from the database $maxTime = DB::table('Prices')->where('ItemId', 34)->max('Time'); + dd($maxTime); //Get the price of the basic minerals $tritaniumPrice = DB::select('SELECT Price FROM Prices WHERE ItemId = ? AND Time = ?', [34, $maxTime]); $tritanium = DB::select( DB::raw('SELECT Price FROM Prices WHERE ItemId= :id AND Time= :time'), array('id' => 34, 'time' => $maxTime));