aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datetime-local.php
blob: 9b67a7b6733f35c22b01d2bc9a84e2b9dc4e2e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$defaults = array(
	'placeholder' => 'yyyy-mm-ddThh:mm:ss+hh:mm',
);

$overrides = array(
	'type' => 'datetime-local',
);

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

echo elgg_view('input/default', array_merge($defaults, $vars, $overrides));