can't cast [{ts '2018-05-25 00:01:06'} 00:00:00] to date value