No idea why this is the case; by adjusting the time.strftime to be ran within the function, rather than parsed into it. i got 2 different dates, with the latter being correct.
As seen here
[Mon, 27 Nov 2023 00:41:46] DEBUG [alphaess.py.getOneDateEnergyBySn:93] DATE: 2023-11-26
[Mon, 27 Nov 2023 00:41:46] DEBUG [alphaess.py.getOneDateEnergyBySn:95] DATE: 2023-11-27
I got no idea why this is the case, but its a fix for now and should report the local date to the API call
No idea why this is the case; by adjusting the
time.strftime
to be ran within the function, rather than parsed into it. i got 2 different dates, with the latter being correct.As seen here
I got no idea why this is the case, but its a fix for now and should report the local date to the API call