diff options
Diffstat (limited to 'views/default/input/datetime-local.php')
-rw-r--r-- | views/default/input/datetime-local.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/input/datetime-local.php b/views/default/input/datetime-local.php index 9b67a7b67..14bcac633 100644 --- a/views/default/input/datetime-local.php +++ b/views/default/input/datetime-local.php @@ -1,6 +1,6 @@ <?php
$defaults = array(
- 'placeholder' => 'yyyy-mm-ddThh:mm:ss+hh:mm',
+ 'placeholder' => 'yyyy-mm-ddThh:mm:ss',
);
$overrides = array(
@@ -8,7 +8,7 @@ $overrides = array( );
if (isset($vars['value']) && is_int($vars['value'])) {
- $vars['value'] = date("c", $vars['value']);
+ $vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);
}
echo elgg_view('input/default', array_merge($defaults, $vars, $overrides));
\ No newline at end of file |