diff options
Diffstat (limited to 'views/default/input/datetime.php')
-rw-r--r-- | views/default/input/datetime.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/input/datetime.php b/views/default/input/datetime.php index 61262f234..69e4bd7f7 100644 --- a/views/default/input/datetime.php +++ b/views/default/input/datetime.php @@ -1,6 +1,15 @@ <?php
+$defaults = array(
+ 'class' => 'elgg-input-datetime',
+);
+
+$vars = array_merge($defaults, $vars);
+
if (isset($vars['value']) && is_int($vars['value'])) {
$vars['value'] = date("c", $vars['value']);
}
+
+$vars['type'] = 'datetime';
+
?>
-<input type="datetime" <?php echo elgg_format_attributes($vars); ?> />
+<input <?php echo elgg_format_attributes($vars); ?> />
|