Merge #15685 - Fix #15682 - Timestamp method not taking current time

Pull-request: #15685
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-12-24 23:44:28 +01:00
commit b8a6425f4e
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -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,