modified migration to convert dates in order to avoid reset.