mirror of https://github.com/itflow-org/itflow
Possible fix for MYSQL Date not handling 0000-00-00
This commit is contained in:
parent
a79e4b496c
commit
2acb5e0b7b
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue