Use DateFormatterInterface instead of DateFormatter in devel_generate. See https://www.drupal.org/node/2571647