aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datetime.php
blob: 7eecb62e8ea07957b43d90ae1d5e28e441649c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$defaults = array(
	'placeholder' => elgg_echo('placeholder:datetime'), //'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('html/input', array_merge($defaults, $vars, $overrides));