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

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

if (isset($vars['value']) && is_int($vars['value'])) {
	$vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);
}

$vars['type'] = 'datetime-local';
?>
<input <?php echo elgg_format_attributes($vars); ?> />