diff --git a/lib/l10n.php b/lib/l10n.php index 41c89a7d4b..f1a2523c30 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -223,7 +223,12 @@ class OC_L10N{ $locales[] = $locales[0].'_'.strtoupper($locales[0]); } setlocale(LC_TIME, $locales); - return strftime($this->localizations[$type], $data); + $format = $this->localizations[$type]; + // Check for Windows to find and replace the %e modifier correctly + if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { + $format = preg_replace('#(?