Fixed bug where time was always AM.