aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/history.php2
-rw-r--r--admin/themes/default/js/datepicker.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/admin/history.php b/admin/history.php
index 190ad334b..26855bb40 100644
--- a/admin/history.php
+++ b/admin/history.php
@@ -75,14 +75,12 @@ if (isset($_POST['submit']))
// dates
if (!empty($_POST['start']))
{
- $_POST['start'] = trim($_POST['start']);
check_input_parameter('start', $_POST, false, '/^\d{4}-\d{2}-\d{2}$/');
$search['fields']['date-after'] = $_POST['start'];
}
if (!empty($_POST['end']))
{
- $_POST['end'] = trim($_POST['end']);
check_input_parameter('end', $_POST, false, '/^\d{4}-\d{2}-\d{2}$/');
$search['fields']['date-before'] = $_POST['end'];
}
diff --git a/admin/themes/default/js/datepicker.js b/admin/themes/default/js/datepicker.js
index 2c72f823f..cabf1f479 100644
--- a/admin/themes/default/js/datepicker.js
+++ b/admin/themes/default/js/datepicker.js
@@ -107,6 +107,7 @@ jQuery.fn.pwgDatepicker = function(settings) {
$this.datetimepicker(jQuery.extend({
dateFormat: linked ? 'DD d MM yy' : 'yy-mm-dd',
timeFormat: 'HH:mm',
+ separator: options.showTimepicker ? ' ' : '',
altField: linked ? $target : null,
altFormat: 'yy-mm-dd',