aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 93d6fb66c7e..8504518dbfb 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -222,6 +222,18 @@ class OC_UTIL {
self::$styles[] = "$application/css/$file";
}
+ /**
+ * formats a timestamp in the "right" way
+ *
+ * @param timestamp $timestamp
+ */
+ public static function formatDate( $timestamp ){
+ $timeformat='F j, Y, H:i';
+ return date($timeformat,$timestamp);
+ }
+
+
+
/**
* check if the current server configuration is suitable for ownCloud
* @return array arrays with error messages and hints