We consider a new Stefan-type problem for the classical heat equation with a latent heat and phase-change temperature depending of the variable time. We prove the equivalence of this Stefan problem with a class of boundary value problems for the nonlinear canonical evolution equation involving a source term with two free boundaries. This equivalence is obtained by applying a reduction to a Burgers equation and a reciprocal-type transformations. Moreover, for a particular case, we obtain a unique explicit solution for the two different problems.