aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datetime-local.php
blob: 52902f54357bc4d6872a00c3f9cea45b20c53a99 (plain)
1
2
3
4
5
6
<?php
if (isset($vars['value']) && is_int($vars['value'])) {
	$vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);
}
?>
<input type="datetime-local" <?php echo elgg_format_attributes($vars); ?> />