def add_timestamps(configs, timestamps_dict):
    """For each config, set its timestamp_format field based on its timestamp_format_key field."""
    for config in configs:
        config["timestamp_format"] = timestamps_dict[config["timestamp_format_key"]]
    return configs