Fix wrong time unit conversion