An expression for the longitudinal chromatic aberration of an accelerating gap with an arbitrary distribution of the electrostatic field along the electron trajectory is presented, and a method is proposed for reducing it in time-transforming chronographs to values of order 10 fs.