Fix bug 397727 - Incorrect DateTime format for (Google) Calendar request. r=dbo

This commit is contained in:
mozilla%kewis.ch 2007-10-22 11:07:29 +00:00
Родитель 268f9b6472
Коммит c9f6fffcfa
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -543,6 +543,18 @@ calGoogleSession.prototype = {
aItemReturnOccurrences,
aResponseListener,
aExtraData) {
// Requesting only a DATE returns items based on UTC. Therefore, we make
// sure both start and end dates include a time and timezone. This may
// not quite be what was requested, but I'd say its a shortcoming of
// rfc3339.
if (aRangeStart) {
aRangeStart = aRangeStart.clone();
aRangeStart.isDate = false;
}
if (aRangeEnd) {
aRangeEnd = aRangeEnd.clone();
aRangeEnd.isDate = false;
}
var rfcRangeStart = toRFC3339(aRangeStart);
var rfcRangeEnd = toRFC3339(aRangeEnd);