@@ -, +, @@ --- misc/cronjobs/cleanup_database.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/misc/cronjobs/cleanup_database.pl +++ a/misc/cronjobs/cleanup_database.pl @@ -399,7 +399,7 @@ sub PurgeHolidays { $sth = $dbh->prepare( q{ DELETE FROM special_holidays - WHERE DATE( CONCAT( year, '-', month, '-', day ) ) < ? + WHERE CAST( CONCAT( year, '-', month, '-', day ) AS DATE ) < ? } ); $sth->execute( $date->ymd ) or die $dbh->errstr; --