aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-04-16 20:34:18 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-04-16 20:34:18 +0200
commit1372d8339d78c01b1514708f26520e244cc991e2 (patch)
treeea44cc204bc8103ca84fbb7d37e8dc87efaa8952 /lib/base.php
parentcf50c497b92f59f8252e1d8a7f3413c8d880df6d (diff)
downloadnextcloud-server-1372d8339d78c01b1514708f26520e244cc991e2.tar.gz
nextcloud-server-1372d8339d78c01b1514708f26520e244cc991e2.zip
add a date format function for more eyecandy
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