summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/l10n.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 4eae109cb52..2f72b971173 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -121,18 +121,20 @@ class OC_L10N{
* - date
* - Creates a date
* - l10n-field: date
- * - params: timestamp (int)
+ * - params: timestamp (int/string)
* - datetime
* - Creates date and time
* - l10n-field: datetime
- * - params: timestamp (int)
+ * - params: timestamp (int/string)
* - time
* - Creates a time
* - l10n-field: time
- * - params: timestamp (int)
+ * - params: timestamp (int/string)
*/
public function l($type, $data){
switch($type){
+ // If you add something don't forget to add it to $localizations
+ // at the top of the page
case 'date':
if( is_string( $data )) $data = strtotime( $data );
return date( $this->localizations['date'], $data );