fixed a bug with 12h format time

can recognize 2pm, 0200pm, 245pm, etc. now