fix method call for time to string

This commit is contained in:
Nabeel Shahzad 2017-12-14 11:50:47 -06:00
parent b940273133
commit e5793ec38c
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,11 @@ class Utils extends Facade
return self::secondsToTimeParts(self::minutesToSeconds($minutes));
}
public static function minutesToTimeString($minutes): string
{
return self::secondsToTimeString(self::minutesToSeconds($minutes));
}
/**
* Convert seconds to an array of hours, minutes, seconds
* @param $seconds

View File

@ -33,7 +33,7 @@
{!! $pirep->arr_airport->icao !!} 
</div>
<div><span class="description">Flight Time&nbsp;</span>
{!! Utils::secondsToTime($pirep->flight_time) !!}
{!! Utils::minutesToTimeString($pirep->flight_time) !!}
</div>
<div><span class="description">Aircraft&nbsp;</span>
{!! $pirep->aircraft->registration !!} ({!! $pirep->aircraft->name !!})