aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DateTimeFormatter.php
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-09-05 16:18:46 +0330
committerGitHub <noreply@github.com>2023-09-05 16:18:46 +0330
commit9b92c1abe41e3c1b4fe82770d56bde2d935fa98f (patch)
tree5ef976de6e94d23a55b785b0eb260e941ebac302 /lib/private/DateTimeFormatter.php
parent495683c358af560684a9f96cd54ec27744d55146 (diff)
downloadnextcloud-server-9b92c1abe41e3c1b4fe82770d56bde2d935fa98f.tar.gz
nextcloud-server-9b92c1abe41e3c1b4fe82770d56bde2d935fa98f.zip
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>
Diffstat (limited to 'lib/private/DateTimeFormatter.php')
-rw-r--r--lib/private/DateTimeFormatter.php2
1 files changed, 1 insertions, 1 deletions
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 .= '^';
}