This commit is contained in:
Baoshuo Ren 2023-01-16 18:02:02 +08:00
parent 6ff2f48e88
commit da273d1df9
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -158,7 +158,7 @@
<span class="text-muted small">
(<?= UOJLocale::get('user::last active at') ?>
<?php if ((clone UOJTime::$time_now)->modify('- 1 day') <= $last_visit_time) : ?>
<?= HTML::relative_time_str($last_visit_time, 0) ?>)
<?= HTML::relative_time_str($last_visit_time->getTimestamp(), 0) ?>)
<?php else : ?>
<?= $last_visit_time->format('Y-m-d') ?>)
<?php endif ?>