diff options
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 67da83c7..cbc18db8 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -50,7 +50,7 @@ function check_request_date($name, $error_message = null, $null_allowed = false) */ function check_date($input, $error_message = null, $null_allowed = false) { if (DateTime::createFromFormat("Y-m-d", trim($input))) - return new ValidationResult(true, DateTime::createFromFormat("Y-m-d", trim($input))); + return new ValidationResult(true, DateTime::createFromFormat("Y-m-d", trim($input))->getTimestamp()); if ($null_allowed) return new ValidationResult(true, null); |