typo in convertTime function