Set ts for yaml.