fix adding nsdate to comparison predicate, gets translated as string when going to db instead of integer