diff options
Diffstat (limited to 'views/default/input/datetime-local.php')
-rw-r--r-- | views/default/input/datetime-local.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/views/default/input/datetime-local.php b/views/default/input/datetime-local.php index 52902f543..468843901 100644 --- a/views/default/input/datetime-local.php +++ b/views/default/input/datetime-local.php @@ -1,6 +1,14 @@ <?php
+$defaults = array(
+ 'class' => 'elgg-input-datetime-local',
+);
+
+$vars = array_merge($defaults, $vars);
+
if (isset($vars['value']) && is_int($vars['value'])) {
$vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);
}
+
+$vars['type'] = 'datetime-local';
?>
-<input type="datetime-local" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file +<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file |