The invention relates to a method for producing a latent heat accumulator, in which a can body is filled with a phase-change material in the liquid or solid aggregate state, and in which the can body filled with said solid or liquid phase-change material is closed by means of flanging such that fluid cannot pass through.