fix timeparsing