wip datetime

This commit is contained in:
salam committed 2026-05-25 14:20:35 +02:00
1 parent bb6dee7d60
commit 3b81f7cc9e
4 files changed
+4 -4

No files matched your search

@@ -36,7 +36,7 @@ class ImportFixtures
'league_id' => (int) $row[1],
'home_id' => (int) $row[2],
'away_id' => (int) $row[3],
'starttime' => Carbon::parse($row[4])->toDateString(),
'starttime' => Carbon::parse($row[4])->toDateTimeString(),
],
['exp_home' => (float) $row[5], 'exp_away' => (float) $row[6]]
);
+1 -1
View File
@@ -119,7 +119,7 @@ class LoadEvents
foreach ($res as $value) {
$labels[] = $value['starttime']->format('d.M.y');
$labels[] = $value['starttime']->format('d.M.Y H:i');
if ($team_position == 'home') {
switch ($value['result_code']) {
+1 -1
View File
@@ -19,7 +19,7 @@ class StatisticFixtures extends Model
protected function casts(): array
{
return [
'starttime' => 'date',
'starttime' => 'datetime',
];
}
+1 -1
View File
@@ -46,7 +46,7 @@ class StatistikoEvent extends Model
protected function casts(): array
{
return [
'starttime' => 'date',
'starttime' => 'datetime',
];
}