show pending where pending

master
Marek Isalski 9 years ago
parent 95882a5574
commit 5d56faf4a4

@ -44,18 +44,24 @@
$created = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['created'],$timezone=$tz); $created = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['created'],$timezone=$tz);
if ( $created ) if ( $created )
print $created->format( 'j/M/Y \@ g:ia' ); print $created->format( 'j/M/Y \@ g:ia' );
else
print '<em>pending</em>';
?></p> ?></p>
<p><strong>Completed:</strong> <?php <p><strong>Completed:</strong> <?php
$tz = new DateTimeZone('UTC'); $tz = new DateTimeZone('UTC');
$completed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['completed'],$timezone=$tz); $completed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['completed'],$timezone=$tz);
if ( $completed ) if ( $completed )
print $completed->format( 'j/M/Y \@ g:ia' ); print $completed->format( 'j/M/Y \@ g:ia' );
else
print '<em>pending</em>';
?></p> ?></p>
<p><strong>Invoice Sent:</strong> <?php <p><strong>Invoice Sent:</strong> <?php
$tz = new DateTimeZone('UTC'); $tz = new DateTimeZone('UTC');
$sent = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['sent'],$timezone=$tz); $sent = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['sent'],$timezone=$tz);
if ( $sent ) if ( $sent )
print $sent->format( 'j/M/Y \@ g:ia' ); print $sent->format( 'j/M/Y \@ g:ia' );
else
print '<em>pending</em>';
?></p> ?></p>
</div> </div>
</div> </div>

Loading…
Cancel
Save