I use the GMAIL API through the REST interface to read emails from the gmail server, my problem is that I use a date filter, giving the date "after: 2014/8/20 to: 2014/8/22", then mail starting from 2014/8/20. 12:30 and later are loaded (ideally, they should consider letters from 12.00). Letters from the evening from 12.00 to 12.00 are missed. I think the server uses the PST time zone. Can I specify the time in the filter? or is there a way to specify the time zone so that I receive all the letters.
code used:
UsersResource.MessagesResource.ListRequest request = null; ListMessagesResponse response = null; request = gmailServiceObj.Users.Messages.List(userEmail); String query = "after:" + FromDate.Date.ToString("yyyy/M/dd") + " before:" + ToDate.Date.ToString("yyyy/M/dd") + " label:" + LabelID; request.Q = query;
Thanks Haseena
source share