Question
Why are data from the API one day ahead when compared to front-end data?
Answer
In the Agility UI, the end date is one day less than what the API Query returns.
Why? Because the begin date starts at 12:00:00 a.m. xx-xx-xxxx and the end date ends 11:59:59 p.m. mm-mm-mmmm. This end time is 1 second less than the time indicated in the API query because it does not include the 12:00:00 which goes into the next day (which is the end date returned in query). Using notation, the interval [mm-dd-yyyy:12:00:00, mm1-dd1-yyyy1:12:00:00) is what's reflected UI.
There is no workaround for this.
Comments
Please sign in to leave a comment.