bug 372366 - Fix tzid upgrade code. r=mvl

This commit is contained in:
mattwillis%gmail.com 2007-03-02 16:56:11 +00:00
parent 3e4a98ce45
commit 5c27fc3dfb

View File

@ -1183,7 +1183,7 @@ calStorageCalendar.prototype = {
icsSvc = Components.classes["@mozilla.org/calendar/ics-service;1"]
.getService(Components.interfaces.calIICSService);
var latestTzId = icsSvc.latestTzId(tzId);
if (tzId != latestTzId) {
if ((latestTzId) && (tzId != latestTzId)) {
tzIdsToUpdate.push({oldTzId: tzId, newTzId: latestTzId});
updateTzIds = true;
}