Replaced old time-parsing for add-edit-session.