ARV187 Posted February 3, 2019 Report Share Posted February 3, 2019 (edited) 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 February 4, 2019 by ARV187 Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted February 4, 2019 Moderators Report Share Posted February 4, 2019 Can't you just use the following? It's a bit cleaner too: <?php echo $schedule->flighttime; ?> 1 Quote Link to comment Share on other sites More sharing options...
ARV187 Posted February 4, 2019 Author Report Share Posted February 4, 2019 Yeah, that is working. Thank you! By default phpvms2 calculate flightime in this way ($schedule->arrtime - $schedule->deptime) don't use flightime database column. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.