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

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

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

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