Logstash 7.11 ruby filter error

Hello World,

I wanted to add 5 hours in my datetime through logstash.
have found a way in logstash 6.4.

ruby {
code => 'event.set("@timestamp", LogStash::Timestamp.new(Time.at(event.get("@timestamp").to_f+86400)))'
}

but in logstash 7.11 its not working with the following error

image

sorry for not sharing the logs