Skip to content

Commit

Permalink
fix: fix weather short date (#5901)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Jan 13, 2022
1 parent ae87cad commit defcf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/people/profile.blade.php
Expand Up @@ -51,7 +51,7 @@
</div>

<p class="mb0{{ $weather->created_at->between(now()->subHours(6), now()) ? '' : ' light-silver' }}"
title="{{ $weather->location }} &mdash; {{ \App\Helpers\DateHelper::getShortDateWithTime($weather->date) }}">
title="{{ $weather->location }} &mdash; {{ $weather->date !== null ? \App\Helpers\DateHelper::getShortDateWithTime($weather->date) : '' }}">
{{ $weather->emoji }} {{ $weather->summary }} / {{ trans('app.weather_current_temperature_'.auth()->user()->temperature_scale, ['temperature' => $weather->temperature(auth()->user()->temperature_scale)]) }}
</p>
</div>
Expand Down

0 comments on commit defcf43

Please sign in to comment.