Fix date comparison bug in SimpleDateFormat