rem: if ((!standardName || standardName == TZname1) && (!daylightName || daylightName == TZname2)) { 
add: if ((!standardName || standardName.valueAsIcalString == TZname1) && (!daylightName || daylightName.valueAsIcalString == TZname2)) { 
context:     function checkTZ(someTZ)    {        var comp = icsSvc.getTimezone(someTZ);        var subComp = comp.getFirstSubcomponent("VTIMEZONE");        var standard = subComp.getFirstSubcomponent("STANDARD");        var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").valueAsIcalString;        var standardName = standard.getFirstProperty("TZNAME").valueAsIcalString;        var daylight = subComp.getFirstSubcomponent("DAYLIGHT");        var daylightTZOffset = null;        var daylightName = null;        if (daylight) {            daylightTZOffset = daylight.getFirstProperty("TZOFFSETTO").valueAsIcalString;            daylightName = daylight.getFirstProperty("TZNAME").valueAsIcalString;        }        if (TZoffset2 == standardTZOffset && TZoffset2 == TZoffset1 &&           !daylight) {            if (!standardName || standardName == TZname1) {                return 2;            }            return 1;        }        if (TZoffset2 == standardTZOffset && TZoffset1 == daylightTZOffset) {            if ((!standardName || standardName == TZname1) &&                (!daylightName || daylightName == TZname2)) {                return 2;            }            return 1;        }        // Now flip them and check again, to cover the southern hemisphere case        if (TZoffset1 == standardTZOffset && TZoffset2 == TZoffset1 &&           !daylight) {            if (!standardName || standardName == TZname2) {                return 2;            }            return 1;        }        if (TZoffset1 == standardTZOffset && TZoffset2 == daylightTZOffset) {            if ((!standardName || standardName == TZname2) &&                (!daylightName || daylightName == TZname1)) {                return 2;            }            return 1;        }        return 0;    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/eab8a5bdfd74b8de97f415eb8e456815884904f3/calUtils.js/clean/calendar/base/src/calUtils.js