SantimentMobile icon indicating copy to clipboard operation
SantimentMobile copied to clipboard

GET /aggregate might be sending local time, not UTC time, resulting in a wrong date range

Open tartakovsky opened this issue 7 years ago • 0 comments

The problem is that the request for sentiment aggregate is about a period in the future, so naturally there are no results. When user runs in 1:40am on 29th local time, the server time (UTC) is still 28th. But the sentiment aggregate request asks for entries which were entered between 29th and 30th. So the result is 0 entries.

I think that when you make the request in the client you send the date in local time, not UTC time

tartakovsky avatar Jun 29 '17 09:06 tartakovsky