diff --git a/html/admin.html b/html/admin.html index 35b78ed..5e775e8 100755 --- a/html/admin.html +++ b/html/admin.html @@ -612,8 +612,23 @@ window.onload = function() { // Compare RTC time with browser time const alertContainer = document.getElementById("alert_container"); alertContainer.innerHTML = ""; + const rtcInput = document.getElementById("RTC_utc_time"); - if (response.rtc_module_time) { + if (response.rtc_module_time === 'not connected' || !response.rtc_module_time) { + // RTC module disconnected + rtcInput.classList.add('border-danger', 'text-danger'); + rtcInput.classList.remove('border-primary'); + alertContainer.innerHTML = ` +