1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-30 04:17:02 +00:00

fix(user): fde7fd0cb0733e097e5300770a01b1060027de6b

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

@ -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 ?>