fixed tenary error and converted priorEditTime to QDate