On the Recent Flights on the front Page of the website it keeps showing the date of 01/01/1970, it should show the date the Pirep was filed.
Here is the code I am using:
<?php # RECENT FLIGHTS ;?>
<div class="col-md-6">
<div class="hr-title hr-long center"><abbr>Recent Flights</abbr></div>
<div class="table-responsive">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>Flight</th>
<th>Route</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
$pirep_list = PIREPData::getRecentReportsByCount(5);
if($pirep_list){
foreach($pirep_list as $pirep) {
?>
<tr>
<td><a href="<?php echo url('/pireps/viewreport/'.$pirep->pirepid);?>"><?php echo $pirep->code.$pirep->flightnum?></a></td>
<td><?php echo $pirep->depicao.' - '.$pirep->arricao;?></td>
<td><?php echo date(DATE_FORMAT, strtotime($report->submitdate)); ?></td>
</tr>
<?php
} }
?>
The previous flight map on my website has decided to disappear. All that is showing is what looks like a piece of paper with the upper right corner dog eared. Any help would be greatly appreciated.
I cleared my cookies, but that didn't help either
I just approved a bunch of Pireps and this is what the error is that I am getting:
Fatal error: Call to undefined method SchedulesData::changeFlownCount() in /home/steve14958/public_html/core/common/PIREPData.class.php on line 1218
And here is what line 1216 through 1218 says:
if($status == PIREP_ACCEPTED) {
self::calculatePIREPPayment($pirepid);
SchedulesData::changeFlownCount($pirep_details->code, $pirep_details->flightnum, '+1');
For some reason, our flights are not being recorded in the admin center or on our public and pilot center profiles. For example I have done about 6 flights and everything still shows 0 flights and 0 hours.
I read that, but 1 doesn't help now, LOL. And two, sounds like we would still have to enter manually.
Too bad there isn't a way to upload a PDF airline schedule and a program extracts that puts it all on the right places, LOL.