fix bugs for time eg. 12:35am/0:35am and 12:30pm