fix: sets default twig date format as m/d/Y
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
twig:
|
twig:
|
||||||
file_name_pattern: '*.twig'
|
file_name_pattern: '*.twig'
|
||||||
date:
|
date:
|
||||||
|
format: 'm/d/Y'
|
||||||
timezone: '%env(default:app.default.timezone:TZ)%'
|
timezone: '%env(default:app.default.timezone:TZ)%'
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
|
|||||||
@@ -213,7 +213,6 @@ class Tmdb
|
|||||||
$series['episodes'][$season['season_number']] = Map::from(
|
$series['episodes'][$season['season_number']] = Map::from(
|
||||||
$client->getApi()->getSeason($series['id'], $season['season_number'])['episodes']
|
$client->getApi()->getSeason($series['id'], $season['season_number'])['episodes']
|
||||||
)->map(function ($data) {
|
)->map(function ($data) {
|
||||||
$data['air_date'] = Carbon::parse($data['air_date'])->format('m/d/Y');
|
|
||||||
$data['poster'] = (null !== $data['still_path']) ? self::POSTER_IMG_PATH . $data['still_path'] : null;
|
$data['poster'] = (null !== $data['still_path']) ? self::POSTER_IMG_PATH . $data['still_path'] : null;
|
||||||
return $data;
|
return $data;
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|||||||
@@ -35,9 +35,9 @@
|
|||||||
>
|
>
|
||||||
<span {{ stimulus_target('tv-results', 'count') }}>0</span> results
|
<span {{ stimulus_target('tv-results', 'count') }}>0</span> results
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-gray-700 rounded-lg font-normal text-white" title="Air date {{ episode['name'] }}">
|
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-gray-700 rounded-lg font-normal text-white" title="Air date {{ episode['name'] }}">
|
||||||
{{ episode['air_date'] }}
|
{{ episode['air_date']|date }}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user