From 53094c560710a320455d180561f528b4c5ffc85c Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 5 Aug 2010 18:42:33 +0000 Subject: Had the semantics of datetime and datetime-local reversed --- views/default/input/datetime-local.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/input/datetime-local.php') 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 @@ '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 -- cgit v1.2.3