Update core.js

modify line 616, 
the date must be compare o.endDate and o.startDate on line 636
so it should be modified by _zero_time() to the same type