Jump to content
ARV187

[Solved] Show minutes in flight time schedule_briefing.tpl

Recommended Posts

Hi, actually in my phpvms v2.1.936 I have this code:

schedule_briefing.tpl

<!-- Flight time  Row -->

<tr>
        <td colspan="2"><?php echo $schedule->arrtime - $schedule->deptime ?></td>
    </tr>

But this code not show minutes, only hours, so if I have arr time = 12:59 and dep time = 09:00 the result is 3hours, not 3:59 hours.

How can I fix this?

 

Thanks!

Edited by ARV187

Share this post


Link to post
Share on other sites

Yeah, that is working. Thank you!

By default phpvms2 calculate flightime in this way ($schedule->arrtime - $schedule->deptime) don't use flightime database column.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×