Skip to content

Commit

Permalink
Fix search system logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VINADES.,JSC authored and hoaquynhtim99 committed Jul 25, 2018
1 parent e83cead commit cec61f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/siteinfo/logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

if (! empty($data_search['to'])) {
if (preg_match('/^([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})$/', $data_search['to'], $match)) {
$to = mktime(0, 0, 0, $match[2], $match[1], $match[3]);
$to = mktime(23, 59, 59, $match[2], $match[1], $match[3]);
$array_where[] = 'log_time <= ' . $to;
$base_url .= '&amp;to=' . $data_search['to'];
}
Expand Down

0 comments on commit cec61f3

Please sign in to comment.