From 16e9a69c0dc66cc81e52e748c5a04301351cd204 Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 24 Nov 2016 09:25:17 +0100 Subject: fixes #277 date parsing returns the start of the day now --- includes/sys_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/sys_page.php') diff --git a/includes/sys_page.php b/includes/sys_page.php index 8eb32962..82ce9896 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -132,7 +132,7 @@ function check_request_date($name, $error_message = null, $null_allowed = false) * @return ValidationResult containing the parsed date */ function check_date($input, $error_message = null, $null_allowed = false) { - if ($tmp = parse_date("Y-m-d", trim($input))) { + if ($tmp = parse_date("Y-m-d H:i", trim($input) . " 00:00")) { return new ValidationResult(true, $tmp); } if ($null_allowed) { -- cgit v1.2.3-70-g09d2