summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-10-18 08:09:58 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2012-10-18 08:09:58 -0700
commite4c0bb59e52a2cc7be21cdc4180a7f1aa64b18b5 (patch)
tree1a308bbbe6f474b83a581107b3c24dc0a6439a5b /lib/util.php
parente307bf31c801b554a44afddd37e8e6f425fab567 (diff)
parentd8eb62232e2b3003925c87b316b66ed6b39ff100 (diff)
downloadnextcloud-server-e4c0bb59e52a2cc7be21cdc4180a7f1aa64b18b5.tar.gz
nextcloud-server-e4c0bb59e52a2cc7be21cdc4180a7f1aa64b18b5.zip
Merge pull request #39 from scambra/date-l10n-fixes
Date l10n fixes
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index 5771b89f265..880a519d347 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -162,8 +162,8 @@ class OC_Util {
$offset=$clientTimeZone-$systemTimeZone;
$timestamp=$timestamp+$offset*60;
}
- $timeformat=$dateOnly?'F j, Y':'F j, Y, H:i';
- return date($timeformat,$timestamp);
+ $l=OC_L10N::get('lib');
+ return $l->l($dateOnly ? 'date' : 'datetime', $timestamp);
}
/**