aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datetime.php
blob: 3a5f39bcbdf45f38282fb0da759bc78ba979c53e (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',
);

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

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