I hope my solution will work for you too. As I patched it, now I am passing updated_at (date fiels) like $db['updated_at'] = array($date,'date')
on my patch if its array, its parses and applied second index to query itself to cast its type like '1111-11-11 11 11:1'::date