Fix time data generation

Do as add and assign not just assign