Skip to content

Commit 7835747

Browse files
committed
Fix type issue
1 parent ac7de5f commit 7835747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerPrice/module.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ private function FetchFromEPEXSpot($market)
248248

249249
private function FetchFromAwattar($market)
250250
{
251-
$start = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
252-
$end = mktime(23, 59, 59, date('m'), date('d') + 1, date('Y'));
251+
$start = mktime(0, 0, 0, intval(date('m')), intval(date('d')), intval(date('Y')));
252+
$end = mktime(23, 59, 59, intval(date('m')), intval(date('d')), intval(date('Y')));
253253
$data = file_get_contents(sprintf('https://api.awattar.%s/v1/marketdata?start=%s&end=%s', $market, $start * 1000, $end * 1000));
254254
return $this->NormalizeAndReduce(json_decode($data, true)['data']);
255255
}

0 commit comments

Comments
 (0)