diff --git a/index.html b/index.html
index 39f4c55..2ab5a60 100644
--- a/index.html
+++ b/index.html
@@ -771,6 +771,7 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({
}
function updateClockAndEvents() {
+ try {
var now = new Date();
// Real-time clock hands and digital
@@ -912,6 +913,9 @@ if (moonTimes.set) {
var moonZenithWhen = moonZenith && moonZenith > now ? formatDateLong(moonZenith) : '';
document.getElementById('moon-zenith-value').textContent = moonZenith ? formatTimeHM(moonZenith) : '--:--';
document.getElementById('moon-zenith-when').textContent = moonZenithWhen ? 'ยท ' + moonZenithWhen : '';
+ } catch (e) {
+ console.log('updateClock error:', e);
+ }
}
var startTime = Date.now();