Bug 1244808 - Fix JavaScript Error: "calDate.jsDate is undefined" {file:[...]/calTimezoneService.js" line: 563}, r=Fallen, a=Fallen
authorStefan Sitter <ssitter@gmail.com>
Mon, 01 Feb 2016 20:39:31 +0100
changeset 23931 f3e4a42b85af11a1cfb5a93841bba9e324e81272
parent 23930 15ef716ececd83ddb7468805d9973de00dceb0eb
child 23932 4214c34f414a39888439901e027e7cf5fc0219e2
child 23934 e2692503df3187aa87940cb34425828a2a593526
child 23936 67d9f5fc41c54d4f976ea405fec3ca0ee190f0c5
push idunknown
push userunknown
push dateunknown
reviewersFallen, Fallen
bugs1244808
Bug 1244808 - Fix JavaScript Error: "calDate.jsDate is undefined" {file:[...]/calTimezoneService.js" line: 563}, r=Fallen, a=Fallen
calendar/base/src/calTimezoneService.js
--- a/calendar/base/src/calTimezoneService.js
+++ b/calendar/base/src/calTimezoneService.js
@@ -555,17 +555,17 @@ function guessSystemTimezone() {
             Components.utils.reportError(filepath+": "+ex);
             return "";
         }
     }
 
     function weekday(icsDate, tz) {
         let calDate = cal.createDateTime(icsDate);
         calDate.timezone = tz;
-        return calDate.jsDate.toLocaleFormat("%a");
+        return cal.dateTimeToJsDate(calDate).toLocaleFormat("%a");
     }
 
     // Try to find a tz that matches OS/JSDate timezone.  If no name match,
     // will use first of probable timezone(s) with highest score.
     var probableTZId = "floating"; // default fallback tz if no tz matches.
     var probableTZScore = 0;
     var probableTZSource = null;