aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/datetime.php
blob: a9b2fe418da22235a3017c7e84bf4618aef437de (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('input/default', array_merge($defaults, $vars, $overrides));