Permalink
Browse files

bug 3188: history search, trailing space in dates

git-svn-id: http://piwigo.org/svn/trunk@30956 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
mistic100 committed Feb 13, 2015
1 parent 6de82cb commit 0bf46b68542880fa0c5951bf124b7b20f4feb217
Showing with 1 addition and 2 deletions.
  1. +0 −2 admin/history.php
  2. +1 −0 admin/themes/default/js/datepicker.js
@@ -75,14 +75,12 @@
// 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'];
}
@@ -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',

0 comments on commit 0bf46b6

Please sign in to comment.