From 78fc04c83654c51eac7f40d4122aa1ff33fa2625 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 22 Feb 2020 09:54:38 -0500 Subject: [PATCH] Fixed #249 - Ecobee down notification does not include a leading 0 on minute --- js/component/down_notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/component/down_notification.js b/js/component/down_notification.js index 6ec54bd..3b0b6a0 100644 --- a/js/component/down_notification.js +++ b/js/component/down_notification.js @@ -27,7 +27,7 @@ beestat.component.down_notification.prototype.decorate_ = function(parent) { }); var last_update = moment.utc(beestat.user.get().sync_status.thermostat).local() - .format('h:m a'); + .format('h:mm a'); div.appendChild($.createElement('p').innerText('Ecobee seems to be down. Your data will update as soon as possible. Last update was at ' + last_update + '.')); parent.appendChild(div);