summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-27 17:59:28 +0200
committermsquare <msquare@notrademark.de>2016-09-27 17:59:28 +0200
commit5957e05bf13ec9659f52a3c613abac09cacab8c6 (patch)
tree4c926f5f2497c5955ad03594b0ee907652c1a51e /includes/sys_page.php
parent031fc3057c46245cd62fc39f2d11ee3f0a393e06 (diff)
finished rename settings to event config and added more date validation for event config
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php2
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);