On the Hamiltonian and Lagrangian structures of time–dependent reductions of evolutionary PDEs, in “Differential Geometry and its Applications