Close GH-627: Use dashes to format invalid times.