From af4103c31cfef0a507dcfa06926fb64c9be5044c Mon Sep 17 00:00:00 2001 From: leosw Date: Tue, 1 Feb 2022 21:36:29 +0100 Subject: [PATCH] Change date to relative : can now be yesterday or today --- includes/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/session.php b/includes/session.php index dac376c..137110a 100755 --- a/includes/session.php +++ b/includes/session.php @@ -26,7 +26,7 @@ else { $user->rank = "visitor"; // All users are visitors } -$user->date_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::LONG, IntlDateFormatter::NONE, $config['timezone']); +$user->date_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, $config['timezone']); $user->datetime_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::LONG, IntlDateFormatter::SHORT, $config['timezone']); $user->datetimeshort_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, $config['timezone']);