Jump to content

Last flight date


mark1million

Recommended Posts

  • Administrators

Where are you getting $report from, are you getting their latest PIREP?

$report has to be assigned to something,  for instance:

http://phpvms.net/docs/api/phpvms/PIREPData.html#GetLastReports

so

<?php

$report = PIREPData::GetLastReports($pilot->pilotid, 1);

echo date('d.M.Y', $report->submitdate);

?>

Link to comment
Share on other sites

  • Administrators

try this

<?php
$report = PIREPData::GetLastReports($pilot->pilotid, 1);
echo date('d.M.Y', strtotime($report->submitdate));
?>

But since you're using the beta, you can do now:

<?php
echo date('d.M.Y', strtotime($pilot->lastpirep));
?>

I thought it made sense to just automatically log that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...