diff options
author | Evan Winslow <evan.b.winslow@gmail.com> | 2010-08-05 18:42:33 +0000 |
---|---|---|
committer | Evan Winslow <evan.b.winslow@gmail.com> | 2010-08-05 18:42:33 +0000 |
commit | 53094c560710a320455d180561f528b4c5ffc85c (patch) | |
tree | 7d7e5ad712ea1e2d754a15e37657af5447f3922f /views/default/input/datetime-local.php | |
parent | d29340b0fda7a768f6941088808de7e9e41aa616 (diff) | |
download | elgg-53094c560710a320455d180561f528b4c5ffc85c.tar.gz elgg-53094c560710a320455d180561f528b4c5ffc85c.tar.bz2 |
Had the semantics of datetime and datetime-local reversed
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 |