Fixed pretty() function to show am/pm properly