-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charging elapsed time display is incorrect due to time zone issues #170
Comments
Thanks for reporting. I tired setting my PC's time to -6hrs but I'm unable to replicate. Please could you post the output of |
(hm, weird that divertmode:1 but the slider is off?) |
Thanks, I can see the issue. Divertmode 1 is means normal charge. While divert mode 2 is 'eco' mode: ESP8266_WiFi_v2.x/src/divert.cpp Line 29 in bd14068
|
Oops sorry. Base-0 brain here ;) |
Sorry - after an update to 2.7.0 and a restart, now I don't see it. Somehow I had missed this change:
which was kinda buried in commit bf14d0f RTC detect complete |
@sandeen this issue should be now fixed in a better way in the latest version V2.7.1. Please could you test and confirm. Thank you https://github.com/OpenEVSE/ESP8266_WiFi_v2.x/releases/tag/2.7.1 |
Thanks, I'll give it a shot soon; I'm recently having a strange problem where I cannot reach the web interface or even ping the device after it's been up for a while, but mqtt messages are still sent/received... I'll need to reset it to get the new firmware image on it. |
When RAPI tells me elapsed time is 1144s, the HTML display tells me "18:19:04" instead of the correct 00:19:04. This is because of time zone issues apparently, and the way that elapsed time is handled:
self.elapsedNow(new Date((openevse.status.elapsed() * 1000) + ((new Date()) - self.elapsedLocal())));
I can't quite tell what this is trying to do, to be honest... but the 18 hours above seems to be because I am at GMT-6:00, so 00 hours GMT is 18H in my time zone.
Would using
new Date(0,0,0,0,0,1144,0)
give the right answer for an elapsed time, which should not care about time zones? I admit I get confused w/ javascript time, browser time, time zones, and the like.The text was updated successfully, but these errors were encountered: