aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorEvan Winslow <evan.b.winslow@gmail.com>2010-08-05 18:42:33 +0000
committerEvan Winslow <evan.b.winslow@gmail.com>2010-08-05 18:42:33 +0000
commit53094c560710a320455d180561f528b4c5ffc85c (patch)
tree7d7e5ad712ea1e2d754a15e37657af5447f3922f /views/default
parentd29340b0fda7a768f6941088808de7e9e41aa616 (diff)
downloadelgg-53094c560710a320455d180561f528b4c5ffc85c.tar.gz
elgg-53094c560710a320455d180561f528b4c5ffc85c.tar.bz2
Had the semantics of datetime and datetime-local reversed
Diffstat (limited to 'views/default')
-rw-r--r--views/default/input/datetime-local.php4
-rw-r--r--views/default/input/datetime.php4
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