Skip to content

Commit

Permalink
bug 3188: history search, trailing space in dates
Browse files Browse the repository at this point in the history
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 0bf46b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions admin/history.php
Expand Up @@ -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'];
}
Expand Down
1 change: 1 addition & 0 deletions admin/themes/default/js/datepicker.js
Expand Up @@ -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',
Expand Down

0 comments on commit 0bf46b6

Please sign in to comment.