Fix: was not setting time properly