зеркало из https://github.com/mozilla/pjs.git
set is_utc as well as zone when doing getInTimezone r=vlad
This commit is contained in:
Родитель
87c4234779
Коммит
f4be5ffe82
|
@ -286,6 +286,10 @@ calDateTime::GetInTimezone(const nsACString& aTimezone, calIDateTime **aResult)
|
||||||
if (icalt.zone && tz) {
|
if (icalt.zone && tz) {
|
||||||
icaltimezone_convert_time(&icalt, (icaltimezone*) icalt.zone, tz);
|
icaltimezone_convert_time(&icalt, (icaltimezone*) icalt.zone, tz);
|
||||||
}
|
}
|
||||||
|
if (tz == icaltimezone_get_utc_timezone())
|
||||||
|
icalt.is_utc = 1;
|
||||||
|
else
|
||||||
|
icalt.is_utc = 0;
|
||||||
|
|
||||||
icalt.zone = tz;
|
icalt.zone = tz;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче