Possible fix for MYSQL Date not handling 0000-00-00

This commit is contained in:
johnnyq 2023-02-27 12:35:41 -05:00
parent a79e4b496c
commit 2acb5e0b7b
1 changed files with 2 additions and 2 deletions

View File

@ -89,6 +89,6 @@ if ($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])) {
$dtf = date('Y-m-d', strtotime("first day of january last year"));
$dtt = date('Y-m-d', strtotime("last day of december last year"));
} else {
$dtf = "0000-00-00";
$dtt = "9999-00-00";
$dtf = "NULL";
$dtt = date('Y-m-d');
}