Force range query to use epoch_second instead of epoch_millies?

Added some ruby code to my logstash to convert @timestamp to epoc in seconds.

Template

"@epoc": {
"type": "date",
"format": "epoch_second"
}

and STILL the range query in Kibana is showing as epoch_millis. Elastic is just ignoring whatever I set.