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