Add extra timestamp field for local time

I think the code would be something like:

filter {
    ruby {
        code => "event['local_time'] = event['@timestamp'].localtime('+01:00')"
    }
}

But I'm unsure how to get that value in a new field