end_date in get device data is not working properly
I wanted to get data of a device by end_date. Let say I have to get data of 2022-06-29 but it is giving data of 2022-06-30 also.
example: const device = new Device({ token: env_vars.device_token });
// create the filter options to get the data from TagoIO
const filter = {
variable: "forward_totalizer",
end_date:"2022-06-29"
};
const resultArray = await device.getData(filter).catch(() => null);
the result is :
The last record of the water_level is 4967.9. It was inserted at Wed Jun 29 2022 23:59:33 GMT+0000 (Coordinated Universal Time)
but 4967.9 value we received on 06/30/2022 05:29:33 am.
Could somebody please help? I am not able to figure out what is the issue.