Fix a mistake with time unit conversion