]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly inject the language into the subcall
authorJoas Schilling <nickvergessen@gmx.de>
Fri, 12 Dec 2014 10:00:07 +0000 (11:00 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Fri, 12 Dec 2014 10:00:07 +0000 (11:00 +0100)
lib/private/datetimeformatter.php

index 75e41259849a4bade82d2d2b3dc9232d2cc5613a..11c62f270839ab725fa5387e2d6deb8a9f8e6de2 100644 (file)
@@ -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) {