I am using GMAIL API over REST interface to read mails from gmail server, my problem is when I am using date filter by giving a date as 'after:2014/8/20 before:2014/8/22' then the mails starting from 2014/8/20 12.30 PM onwards are downloaded (ideally it should consider mails from 12.00 AM). Mails from night 12.00 AM till noon 12.30 PM are skipped. I think server is using PST time zone.
Can I specify time in the filter? or is there a way to specify time zone so that I get all the mails.
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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…