Fixed a bug with time where 12:00 AM and 12:00 PM were being confused.