Block time & Created time matching
This commit is contained in:
parent
fd7c85d7e5
commit
428c9d8896
1 changed files with 4 additions and 1 deletions
|
@ -18,9 +18,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tx-time">
|
<div class="tx-time">
|
||||||
|
<?php
|
||||||
|
$created_time = (abs($tx->transaction_time - strtotime($tx->created_at)) > 3600) ? $tx->transaction_time : $tx->created_at;
|
||||||
|
?>
|
||||||
<div class="created-time">
|
<div class="created-time">
|
||||||
<h3 title="Represents the time this transaction was created on the explorer">Time Created</h3>
|
<h3 title="Represents the time this transaction was created on the explorer">Time Created</h3>
|
||||||
<div><?php echo $tx->created_at->format('j M Y H:i:s') . ' UTC '; ?></div>
|
<div><?php echo $created_time->format('j M Y H:i:s') . ' UTC '; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="conf-time">
|
<div class="conf-time">
|
||||||
|
|
Loading…
Reference in a new issue