aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/date.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/date.php')
-rw-r--r--views/default/output/date.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/views/default/output/date.php b/views/default/output/date.php
index ebb891154..cbb6b8786 100644
--- a/views/default/output/date.php
+++ b/views/default/output/date.php
@@ -1,5 +1,21 @@
<?php
+
+ /**
+ * Date
+ * Displays a properly formatted date
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['value'] A UNIX epoch timestamp
+ *
+ */
+
if ($vars['value'] > 86400) {
- echo gmdate("F j, Y",$vars['value']);
+ echo date("F j, Y",$vars['value']);
}
?> \ No newline at end of file