mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Update lib/private/DateTimeFormatter.php
Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
This commit is contained in:
parent
495683c358
commit
9b92c1abe4
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, '*')) {
|
||||
if (!str_ends_with($formatDate, '^') && !str_ends_with($formatDate, '*')) {
|
||||
$format .= '^';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue