From: Joas Schilling Date: Fri, 12 Dec 2014 10:00:07 +0000 (+0100) Subject: Correctly inject the language into the subcall X-Git-Tag: v8.0.0alpha1~103^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=811f9251d638c3e23d1d2f1d79afe91ef1975a7e;p=nextcloud-server.git Correctly inject the language into the subcall --- diff --git a/lib/private/datetimeformatter.php b/lib/private/datetimeformatter.php index 75e41259849..11c62f27083 100644 --- a/lib/private/datetimeformatter.php +++ b/lib/private/datetimeformatter.php @@ -203,7 +203,7 @@ class DateTimeFormatter implements \OCP\IDateTimeFormatter { $diff = $timestamp->diff($baseTimestamp); if ($diff->y > 0 || $diff->m > 0 || $diff->d > 0) { - return (string) $this->formatDateSpan($timestamp, $baseTimestamp); + return (string) $this->formatDateSpan($timestamp, $baseTimestamp, $l); } if ($diff->h > 0) {