|
|
|
@ -6,16 +6,17 @@
|
|
|
|
|
$tz = new DateTimeZone('UTC');
|
|
|
|
|
$failed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['failed'],$timezone=$tz);
|
|
|
|
|
if ( $failed )
|
|
|
|
|
print $failed->format( 'j/M/Y \@ g:ia' );
|
|
|
|
|
print format_date( $failed->getTimestamp(), 'custom', 'j/M/Y \@ g:ia' );
|
|
|
|
|
?></div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
<?php if ( $transaction[ 'cancelled' ] ): ?>
|
|
|
|
|
<div class="alert alert-warning" role="alert">This transaction was <strong>cancelled</strong> on
|
|
|
|
|
<?php
|
|
|
|
|
$tz = new DateTimeZone('UTC');
|
|
|
|
|
$cancelled = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['cancelled'],$timezone=$tz);
|
|
|
|
|
if ( $cancelled )
|
|
|
|
|
print $cancelled->format( 'j/M/Y \@ g:ia' );
|
|
|
|
|
print format_date( $cancelled->getTimestamp(), 'custom', 'j/M/Y \@ g:ia' );
|
|
|
|
|
?>.</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
@ -67,7 +68,7 @@
|
|
|
|
|
$tz = new DateTimeZone('UTC');
|
|
|
|
|
$created = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['created'],$timezone=$tz);
|
|
|
|
|
if ( $created )
|
|
|
|
|
print $created->format( 'j/M/Y \@ g:ia' );
|
|
|
|
|
print format_date( $created->getTimestamp(), 'custom', 'j/M/Y \@ g:ia' );
|
|
|
|
|
else
|
|
|
|
|
print '<em>pending</em>';
|
|
|
|
|
?></p>
|
|
|
|
@ -75,7 +76,7 @@
|
|
|
|
|
$tz = new DateTimeZone('UTC');
|
|
|
|
|
$completed = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['completed'],$timezone=$tz);
|
|
|
|
|
if ( $completed )
|
|
|
|
|
print $completed->format( 'j/M/Y \@ g:ia' );
|
|
|
|
|
print format_date( $completed->getTimestamp(), 'custom', 'j/M/Y \@ g:ia' );
|
|
|
|
|
else
|
|
|
|
|
print '<em>pending</em>';
|
|
|
|
|
?></p>
|
|
|
|
@ -83,7 +84,7 @@
|
|
|
|
|
$tz = new DateTimeZone('UTC');
|
|
|
|
|
$sent = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z',$transaction['sent'],$timezone=$tz);
|
|
|
|
|
if ( $sent )
|
|
|
|
|
print $sent->format( 'j/M/Y \@ g:ia' );
|
|
|
|
|
print format_date( $sent->getTimestamp(), 'custom', 'j/M/Y \@ g:ia' );
|
|
|
|
|
else
|
|
|
|
|
print '<em>pending</em>';
|
|
|
|
|
?></p>
|
|
|
|
|