use unix timestamp, not seconds in query