blob: eab8da9b30427c2e9ab2b21559bb7e9df8a9d80e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
use Fisharebest\Webtrees\Carbon;
use Fisharebest\Webtrees\I18N;
/** @var Carbon $timestamp */
?>
<?php if ($timestamp->unix() === 0) : ?>
<span class="wt-timestamp">
<?= I18N::translate('Never') ?>
</span>
<?php else: ?>
<span class="wt-timestamp" title="<?= e($timestamp->local()->diffForHumans()) ?>" dir="auto">
<?= e($timestamp->local()->isoFormat('LLLL')) ?>
</span>
<?php endif ?>
|