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 | |
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')
-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 |