aboutsummaryrefslogtreecommitdiff
path: root/mod/html5/views/default/input/datetime.php
blob: 69e4bd7f76230ed821d04cb29ffe9e5cf3fc68c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$defaults = array(
	'class' => 'elgg-input-datetime',
);

$vars = array_merge($defaults, $vars);

if (isset($vars['value']) && is_int($vars['value'])) {
	$vars['value'] = date("c", $vars['value']);
}

$vars['type'] = 'datetime';

?>
<input <?php echo elgg_format_attributes($vars); ?> />