[evolution-activesync] _eas2ical_process_timezone: correct calculation of standardUtcOffsetMins



commit d6edbc76575c523e2794722e5064c46f88eeabc3
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]