Updated time to be displayed correctly