aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/date.php
blob: 7c98dddc952fd421186fc23fb52511323917ae97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Date
 * Displays a properly formatted date
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['value'] Date as text or a Unix timestamp in seconds
 */

// convert timestamps to text for display
if (is_numeric($vars['value'])) {
	$vars['value'] = gmdate('Y/m/d', $vars['value']);
}

echo $vars['value'];