You need to format. This discussion might help; it needs to be adapted to your code.
specifically format its times with procedure AMPM