aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/date.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/date.php')
-rw-r--r--views/default/input/date.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/date.php b/views/default/input/date.php
index b347f835d..7e35c7beb 100644
--- a/views/default/input/date.php
+++ b/views/default/input/date.php
@@ -7,4 +7,8 @@ $overrides = array(
'type' => 'date',
);
+if (isset($vars['value']) && is_int($vars['value'])) {
+ $vars['value'] = date("Y-m-d", $vars['value']);
+}
+
echo elgg_view('input/default', array_merge($defaults, $vars, $overrides)); \ No newline at end of file