diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-07-08 16:43:40 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-07-08 16:44:16 +0400 |
commit | acb997206ea4bfbc4e8a4c2649fdebe2c1098751 (patch) | |
tree | 5edd6f520c931217f47d2ee28c46ea3e66c6c716 /js/server_status_monitor.js | |
parent | 625bc13c141a7167f37f0608a51f925f967d29b3 (diff) |
Add wrapper function for formatting datetime
This makes it easier to use and correctly converts params which
formatTime expects.
Diffstat (limited to 'js/server_status_monitor.js')
-rw-r--r-- | js/server_status_monitor.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index ed3574aee1..c093fea83a 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1424,13 +1424,9 @@ AJAX.registerOnload('server_status_monitor.js', function () { function PMA_getLogAnalyseDialog(min, max) { $('#logAnalyseDialog input[name="dateStart"]') - .val( - $.datepicker.formatDate('yy-mm-dd', min) + ' ' + $.datepicker.formatTime('HH:mm:ss', min) - ); + .val(PMA_formatDateTime(min, true)); $('#logAnalyseDialog input[name="dateEnd"]') - .val( - $.datepicker.formatDate('yy-mm-dd', max) + ' ' + $.datepicker.formatTime('HH:mm:ss', max) - ); + .val(PMA_formatDateTime(max, true)); var dlgBtns = { }; |