Unix timestamp not being properly converted to GMT time for Historic queries


#1

Start date

Unix Timestamp: 1371661200
GMT according to http://www.epochconverter.com/ and http://www.onlineconversion.com/unix_time.htm is: 19 Jun 2013 17:00:00 GMT

End date

Unix Timestamp: 1371672000
GMT according to http://www.epochconverter.com/ and http://www.onlineconversion.com/unix_time.htm is: 19 Jun 2013 20:00:00 GMT

However, in the response to my push/get, the start date is:

u’start’: datetime.datetime(2013, 6, 19, 12, 0)

and end date is:

u’end’: datetime.datetime(2013, 6, 19, 15, 0)

According to this discussion: http://dev.datasift.com/discussions/gmt-time-zone-historic-queries, the unix timestamps that I enterted should have been converted to their corresponding GMT times right? If yes, then what happened above? If no, what am I missing?

What I am trying to do is to query using Californian timezone which is GMT - 8. So for the dates I wanted to execute the query in, I add 8 hours before converting them to unix timestamp. In the above example, the start date is supposed to correspond to 9:00AM in GMT - 8 and end date corresponds to 12:00PM in GMT - 8. But, as I said, in the push response, I got 4:00AM and 7:00AM in GMT - 8.