Logstash filter ruby create new event?

i am facing an issue that when i take timestamp (one of the field in my logs) when i use to_i with it it takes just year .
"time" => 2015,
when my config was : event['time'] = event['timestamp'].to_i

so result is coming wrong