We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d07ff commit 329ae3aCopy full SHA for 329ae3a
SmartEVSE-3/data/index.html
@@ -261,10 +261,12 @@
261
$('[id=with_p1_api_data_time]').hide();
262
}
263
264
- if(data.home_battery.last_update == 0) {
265
- $('[id=with_homebattery]').hide();
266
- } else {
+ if(data.home_battery.last_update > 0) {
+ $('#battery_last_update_time').text(new Date(data.home_battery.last_update * 1000).toLocaleTimeString());
+ $('#battery_last_update_date').text(new Date(data.home_battery.last_update * 1000).toLocaleDateString());
267
$('[id=with_homebattery]').show();
268
+ } else {
269
+ $('[id=with_homebattery]').hide();
270
271
272
if(data.home_battery.current == 0) {
0 commit comments