temperature: fix wrong dt on first time step (Thanks Mykola Dvornik)