summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index d2da302b644..5cfe119a4ff 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -387,7 +387,7 @@ class OC_L10N {
if($data instanceof DateTime) {
return $data->format($this->localizations[$type]);
}
- elseif(is_string($data)) {
+ elseif(is_string($data) && !is_numeric($data)) {
$data = strtotime($data);
}
$locales = array(self::findLanguage());