fixed getTimestamp error
This commit is contained in:
parent
836b7e15b3
commit
04f0f68fe4
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
||||||
\DateTime::createFromFormat('U', $tx->TransactionTime)->format('j M Y H:i:s') . ' UTC' ?>
|
\DateTime::createFromFormat('U', $tx->TransactionTime)->format('j M Y H:i:s') . ' UTC' ?>
|
||||||
|
|
||||||
<?php if ($tx->TransactionTime > $tx->Created->getTimestamp()):
|
<?php if ($tx->TransactionTime > $tx->Created->getTimestamp()):
|
||||||
$diffSeconds = $tx->TransactionTime - $tx->Created->Timestamp();
|
$diffSeconds = $tx->TransactionTime - $tx->Created->getTimestamp();
|
||||||
if ($diffSeconds <= 60) {
|
if ($diffSeconds <= 60) {
|
||||||
echo sprintf(' (+%s second%s)', $diffSeconds, $diffSeconds == 1 ? '' : 's');
|
echo sprintf(' (+%s second%s)', $diffSeconds, $diffSeconds == 1 ? '' : 's');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue