Why is my Logstash date plugin return PM as AM?

I tried yyyy-MM-dd hh:mm:ss aa and it works.