From 2193c9ba66cd86abeb7dfaf2ca53126a9bdd596e Mon Sep 17 00:00:00 2001 From: "bugzilla%babylonsounds.com" Date: Sun, 24 Feb 2008 09:46:21 +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 git-svn-id: svn://10.0.0.236/trunk@246409 18797224-902f-48f8-a5cc-f745e15eee43 --- .../prototypes/wcap/sun-calendar-event-dialog-timezone.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js b/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js index 0bf8599bc29..379c4d57573 100644 --- a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-timezone.js +++ b/mozilla/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");