From 9b92c1abe41e3c1b4fe82770d56bde2d935fa98f Mon Sep 17 00:00:00 2001 From: Hamid Dehnavi Date: Tue, 5 Sep 2023 16:18:46 +0330 Subject: Update lib/private/DateTimeFormatter.php Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Signed-off-by: Hamid Dehnavi --- lib/private/DateTimeFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/DateTimeFormatter.php b/lib/private/DateTimeFormatter.php index 658d33a3ed3..8b689683b6c 100644 --- a/lib/private/DateTimeFormatter.php +++ b/lib/private/DateTimeFormatter.php @@ -125,7 +125,7 @@ class DateTimeFormatter implements \OCP\IDateTimeFormatter { * @return string Formatted relative date string */ public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null) { - if (!str_ends_with($format, '*')) { + if (!str_ends_with($formatDate, '^') && !str_ends_with($formatDate, '*')) { $format .= '^'; } -- cgit v1.2.3