function serialization_update_8401 in Drupal 8
Enable BC for timestamp formatting: continue to return UNIX timestamps.
File
- core/
modules/ serialization/ serialization.install, line 54 - Update functions for the Serialization module.
Code
function serialization_update_8401() {
$config_factory = \Drupal::configFactory();
$serialization_settings = $config_factory
->getEditable('serialization.settings');
$serialization_settings
->set('bc_timestamp_normalizer_unix', TRUE)
->save(TRUE);
}