From d3e9d9cd025c07771d70b13bc0251c8a82d78d76 Mon Sep 17 00:00:00 2001 From: "bugzilla%babylonsounds.com" Date: Sun, 24 Feb 2008 09:46:12 +0000 Subject: [PATCH] Bug 414821 - Timezone dialog throws error output when timezone of OS doesn't fit to lightning timezone, patch by ssitter, r=philipp --- calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js b/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js index 0bf8599bc29..379c4d57573 100644 --- a/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js +++ b/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js @@ -45,6 +45,9 @@ function onLoad() { if (index < 0) { tzname = timezoneString(calendarDefaultTimezone().tzid); index = findTimezone(tzname); + if (index < 0) { + index = 0; + } } var menulist = document.getElementById("timezone-menulist");