fixed issue with AM/PM not displaying right