 This is a matter for study in non-equilibrium thermodynamics.When a body is not in a steady state, then the notion of temperature becomes even less safe than for a body in a steady state not in thermodynamic equilibrium.This is also a matter for study in non-equilibrium thermodynamics.