diff --git a/lib/private/DateTimeFormatter.php b/lib/private/DateTimeFormatter.php index 8b689683b6cc9..57c4833a4e357 100644 --- a/lib/private/DateTimeFormatter.php +++ b/lib/private/DateTimeFormatter.php @@ -125,7 +125,7 @@ public function formatDate($timestamp, $format = 'long', \DateTimeZone $timeZone * @return string Formatted relative date string */ public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null) { - if (!str_ends_with($formatDate, '^') && !str_ends_with($formatDate, '*')) { + if (!str_ends_with($format, '^') && !str_ends_with($format, '*')) { $format .= '^'; }