fixed getTimestamp error
This commit is contained in:
parent
6e6dcd0613
commit
409a0a7da7
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