Make adjustments based on the review

Co-authored-by: Faraz Samapoor <f.samapoor@gmail.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
pull/39216/head
Hamid Dehnavi 2023-07-20 16:22:10 +07:00
parent d0b20534b9
commit 495683c358
1 changed files with 1 additions and 1 deletions

@ -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 .= '^';
}