wip datetime
This commit is contained in:
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],
|
'league_id' => (int) $row[1],
|
||||||
'home_id' => (int) $row[2],
|
'home_id' => (int) $row[2],
|
||||||
'away_id' => (int) $row[3],
|
'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]]
|
['exp_home' => (float) $row[5], 'exp_away' => (float) $row[6]]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class LoadEvents
|
|||||||
|
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
|
|
||||||
$labels[] = $value['starttime']->format('d.M.y');
|
$labels[] = $value['starttime']->format('d.M.Y H:i');
|
||||||
|
|
||||||
if ($team_position == 'home') {
|
if ($team_position == 'home') {
|
||||||
switch ($value['result_code']) {
|
switch ($value['result_code']) {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class StatisticFixtures extends Model
|
|||||||
protected function casts(): array
|
protected function casts(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'starttime' => 'date',
|
'starttime' => 'datetime',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class StatistikoEvent extends Model
|
|||||||
protected function casts(): array
|
protected function casts(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'starttime' => 'date',
|
'starttime' => 'datetime',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user