ensure new Date is coerced correctly