correct date and fix trailing whitespace