Fix parsing of typed input for 12 hour format