my logstash in utc time zone.
when it is loading data timestamp is in below format
"@timestamp" => "2017-02-17T05:17:51.289Z",
but when i am just extracting date from @timestamp field with a ruby code as below
tstamp = event['@timestamp'].to_i
it should give me 2017-02-17 but it is giving me the 2017-02-16 date..
not able to figure out why?
"date" => "2017-02-16"