def change_events_timegenerated():
    """
    :return: True if successfully changed the TimeGenerated configuration
    """
    collect_to_create = "s|'Timestamp' => OMS::Common::fast_utc_to_iso8601_format(Time.now.utc),|'Timestamp' =>" \
                        " OMS::Common::fast_utc_to_iso8601_format(Time.at(time).utc),|g"
    create_to_collect = "s|'Timestamp' => OMS::Common::fast_utc_to_iso8601_format(Time.at(time).utc),|'Timestamp' =>" \
                        " OMS::Common::fast_utc_to_iso8601_format(Time.now.utc),|g"
    print_notice(
        "Ateempting to change TimeGenerated configuration configuration")
    if check_logs_timestamp():
        sed = subprocess.Popen(["sed", "-i", collect_to_create,
                                oms_agent_field_mapping_configuration], stdout=subprocess.PIPE)
    else:
        sed = subprocess.Popen(["sed", "-i", create_to_collect,
                                oms_agent_field_mapping_configuration], stdout=subprocess.PIPE)
    o, e = sed.communicate()
    if e is not None:
        print_error("Failed to change log TimeGenerated configuration")
        return False
    print_ok("Successfully changed log TimeGenerated configuration")
    return True

    :return: True if successfully changed the TimeGenerated configuration
    
DataConnectors/CEF/TimeGenerated.py