aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-09-05 21:09:16 +0330
committerGitHub <noreply@github.com>2023-09-05 21:09:16 +0330
commit0808e19540b0bb79926101efb7d61af3055c9774 (patch)
tree07442cd614e74b71d85c4b964dbd867ce3faf53f /lib/private
parent9b92c1abe41e3c1b4fe82770d56bde2d935fa98f (diff)
downloadnextcloud-server-0808e19540b0bb79926101efb7d61af3055c9774.tar.gz
nextcloud-server-0808e19540b0bb79926101efb7d61af3055c9774.zip
Update lib/private/DateTimeFormatter.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'lib/private')
-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 8b689683b6c..57c4833a4e3 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($formatDate, '^') && !str_ends_with($formatDate, '*')) {
+ if (!str_ends_with($format, '^') && !str_ends_with($format, '*')) {
$format .= '^';
}