aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DateTimeFormatter.php
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-20 16:22:10 +0330
committerHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-20 16:22:10 +0330
commit495683c358af560684a9f96cd54ec27744d55146 (patch)
treea4aa94bc63a0a0426642c54819cd9e12af5db97b /lib/private/DateTimeFormatter.php
parentd0b20534b94d0295472ab22157a2bc4c2c9fb703 (diff)
downloadnextcloud-server-495683c358af560684a9f96cd54ec27744d55146.tar.gz
nextcloud-server-495683c358af560684a9f96cd54ec27744d55146.zip
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>
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 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 .= '^';
}