Corrected error in time handling.