diff options
author | msquare <msquare@notrademark.de> | 2016-11-24 09:25:17 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-24 09:25:28 +0100 |
commit | 16e9a69c0dc66cc81e52e748c5a04301351cd204 (patch) | |
tree | eff094b86d4f0e8ec4c9ccb4cc53546821f2770c /includes/sys_page.php | |
parent | 321566d4b0454b1729f736fe7a3822ba4c9a2e30 (diff) |
fixes #277 date parsing returns the start of the day now
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |