From 811f9251d638c3e23d1d2f1d79afe91ef1975a7e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 12 Dec 2014 11:00:07 +0100 Subject: [PATCH] Correctly inject the language into the subcall --- lib/private/datetimeformatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/datetimeformatter.php b/lib/private/datetimeformatter.php index 75e4125984..11c62f2708 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) {