[evolution-activesync/for-master/allday: 3/4] _eas2ical_process_timezone: correct calculation of standardUtcOffsetMins
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync/for-master/allday: 3/4] _eas2ical_process_timezone: correct calculation of standardUtcOffsetMins
- Date: Thu, 30 Oct 2014 16:43:59 +0000 (UTC)
commit 6ea25f846ca4430dc0b181d63da985060af7f001
Author: Graham R. Cobb <g+syncevolution cobb uk net>
Date: Tue Oct 28 22:55:26 2014 +0000
_eas2ical_process_timezone: correct calculation of standardUtcOffsetMins
This is almost certainly a bug with no effects! The calculation of
standardUtcOffsetMins should include the timezone StandardBias value, even
though there are no known timezones where this field is anything other than 0.
eas-daemon/libeas/eas-cal-info-translator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eas-daemon/libeas/eas-cal-info-translator.c b/eas-daemon/libeas/eas-cal-info-translator.c
index b69ca1c..16581fa 100644
--- a/eas-daemon/libeas/eas-cal-info-translator.c
+++ b/eas-daemon/libeas/eas-cal-info-translator.c
@@ -726,7 +726,7 @@ static icaltimezone* _eas2ical_process_timezone (xmlNodePtr n, icalcomponent* vt
{
// Calculate the timezone offsets. See _ical2eas_process_xstandard_xdaylight()
// comments for a full explanation of how EAS Bias relates to iCal UTC offsets
- const gint32 standardUtcOffsetMins = -1 * timeZoneStruct.Bias;
+ const gint32 standardUtcOffsetMins = -1 * (timeZoneStruct.Bias +
timeZoneStruct.StandardBias);
const gint32 daylightUtcOffsetMins = -1 * (timeZoneStruct.Bias +
timeZoneStruct.DaylightBias);
icalcomponent* xstandard = NULL;
icalcomponent* xdaylight = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]