diff --git a/js/functions.js b/js/functions.js index 88263b60ff..de2cd8fe61 100644 --- a/js/functions.js +++ b/js/functions.js @@ -98,7 +98,13 @@ function PMA_addDatepicker ($this_element, type, options) { showTimepicker = false; } + // Getting the current Date and time + var currentDateTime = new Date(); + var defaultOptions = { + hour: currentDateTime.getHours(), + minute: currentDateTime.getMinutes(), + second: currentDateTime.getSeconds(), showOn: 'button', buttonImage: themeCalendarImage, // defined in js/messages.php buttonImageOnly: true,