From 495683c358af560684a9f96cd54ec27744d55146 Mon Sep 17 00:00:00 2001 From: Hamid Dehnavi Date: Thu, 20 Jul 2023 16:22:10 +0330 Subject: Make adjustments based on the review Co-authored-by: Faraz Samapoor Signed-off-by: Hamid Dehnavi --- lib/private/DateTimeFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/DateTimeFormatter.php b/lib/private/DateTimeFormatter.php index 906b7ddf6dc..658d33a3ed3 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, '*') && !str_ends_with($format, '*')) { + if (!str_ends_with($format, '*')) { $format .= '^'; } -- cgit v1.2.3