diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index c99fa8861..7eb58c795 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -1695,7 +1695,7 @@ EOF
$aEventsList[] ='validate';
$aEventsList[] ='keyup';
$aEventsList[] ='change';
- $sHTMLValue = " {$sValidationField}";
+ $sHTMLValue = " {$sValidationField}";
break;
case 'Duration':
diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php
index eab881840..9f0879304 100644
--- a/application/itopwebpage.class.inc.php
+++ b/application/itopwebpage.class.inc.php
@@ -317,6 +317,15 @@ EOF
changeMonth: true,
changeYear: true
});
+ $(".datetime-pick").datepicker({
+ showOn: 'button',
+ buttonImage: '../images/calendar.png',
+ buttonImageOnly: true,
+ dateFormat: 'yy-mm-dd 00:00:00',
+ constrainInput: false,
+ changeMonth: true,
+ changeYear: true
+ });
// Restore the persisted sortable order, for all sortable lists... if any
$('.sortable').each(function()
{