uncomment out the mintime and maxtime validations. They were commented out for some quick testing.

This commit is contained in:
Isaac Connor
2023-02-20 12:27:16 -05:00
parent cb3fb03f92
commit bfbe0d581b

View File

@@ -26,19 +26,19 @@ ob_end_clean();
if ( isset($_REQUEST['minTime']) ) {
$minTime = validHtmlStr($_REQUEST['minTime']);
#if (!check_datetime($minTime)) {
#ZM\Error('Invalid date given for minTime.');
#unset($minTime);
#}
if (!check_datetime($minTime)) {
ZM\Error('Invalid date given for minTime.');
unset($minTime);
}
} else {
$minTime = date('Y-m-d H:i:s', time() - (2*3600));
}
if ( isset($_REQUEST['maxTime']) ) {
$maxTime = validHtmlStr($_REQUEST['maxTime']);
#if (!check_datetime($maxTime)) {
#ZM\Error('Invalid date given for maxTime.');
#unset($maxTime);
#}
if (!check_datetime($maxTime)) {
ZM\Error('Invalid date given for maxTime.');
unset($maxTime);
}
} else {
$maxTime = date('Y-m-d H:i:s', time() - 3600);
}