Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNikhil Nagdev <nnagdev58@gmail.com>2019-12-22 22:21:31 +0300
committerNikhil Nagdev <nnagdev58@gmail.com>2019-12-22 22:21:31 +0300
commit1a605524174666bd6364d92c8706038eeb6cd9d8 (patch)
tree69b1418974a82396f58746c109cf0f3f4d4d779f /js
parentb3a3e3fbe409a2c199a1d5b7565d0abe5b724e50 (diff)
Changed default time of datetime picker as current time
Signed-off-by: Nikhil Nagdev <nnagdev58@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/functions.js6
1 files changed, 6 insertions, 0 deletions
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,