fix date
This commit is contained in:
1 parent
8a5b03eec4
commit
eec2d64a15
2 files changed
+10
-10
No files matched your search
@@ -99,9 +99,8 @@ class LoadEvents
|
||||
|
||||
foreach ($res[$team_position] as $value) {
|
||||
|
||||
$start = Carbon::createFromTimestamp($value['starttime']);
|
||||
$labels[] = round($start->diffInDays(Carbon::now()));
|
||||
$playing_date[] = $start->format('Y-m-d H:i');
|
||||
$labels[] = round($value['starttime']->diffInDays(Carbon::now()));
|
||||
$playing_date[] = $value['starttime']->format('Y-m-d H:i');
|
||||
|
||||
$results_per_event[] = $value['val_home'] . ' : ' . $value['val_away'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user