Bug 475803 - "cal.fromRFC3339 matches fails to set timezone correctly" [r=philipp]
authorPatrick Cloke <DarkJedi613@Yahoo.com>
Thu, 29 Jan 2009 10:33:00 +0000
changeset 1789 dcb38165108de43dde3343877777832b56db5cec
parent 1788 510a21be10f74025024ae529f367258127d29533
child 1790 e4108b8fb060e2a8fb4df52bb118bf5c7eea95ea
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs475803
Bug 475803 - "cal.fromRFC3339 matches fails to set timezone correctly" [r=philipp]
calendar/base/modules/calProviderUtils.jsm
--- a/calendar/base/modules/calProviderUtils.jsm
+++ b/calendar/base/modules/calProviderUtils.jsm
@@ -318,18 +318,18 @@ cal.fromRFC3339 = function fromRFC3339(a
 
     if (!dateTime.isDate) {
         dateTime.hour = matches[5];
         dateTime.minute = matches[6];
         dateTime.second = matches[7];
     }
 
     // Timezone handling
-    if (matches[9] == "Z") {
-        // If the dates timezone is "Z", then this is UTC, no matter
+    if (matches[9] == "Z" || matches[9] == "z") {
+        // If the dates timezone is "Z" or "z", then this is UTC, no matter
         // what timezone was passed
         dateTime.timezone = cal.UTC();
 
     } else if (matches[9] == null) {
         // We have no timezone info, only a date. We have no way to
         // know what timezone we are in, so lets assume we are in the
         // timezone of our local calendar, or whatever was passed.