fixed getTimestamp error

This commit is contained in:
Akinwale Ariwodola 2017-08-26 14:31:44 +01:00
parent 836b7e15b3
commit 04f0f68fe4

View file

@ -29,7 +29,7 @@
\DateTime::createFromFormat('U', $tx->TransactionTime)->format('j M Y H:i:s') . ' UTC' ?>
<?php if ($tx->TransactionTime > $tx->Created->getTimestamp()):
$diffSeconds = $tx->TransactionTime - $tx->Created->Timestamp();
$diffSeconds = $tx->TransactionTime - $tx->Created->getTimestamp();
if ($diffSeconds <= 60) {
echo sprintf(' (+%s second%s)', $diffSeconds, $diffSeconds == 1 ? '' : 's');
} else {