Erregistroa posta elektronikoz bidali: The Stäckel theorem in the Lagrangian formalism and the use of local times