Fix up date objects passed to DBIC searches