blob: 14bcac63336290a3c1687acf573861e7d7d385c5 (
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-local',
);
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));
|