The effects of nonlinear periodic structures on the temporal behaviour of optical pulses are not well understood, and measurements so far have not taken into account the phase dynamics of the pulse.