示例#1
0
        // Token: 0x0600119B RID: 4507 RVA: 0x00060804 File Offset: 0x0005EA04
        public static bool IsClientTimeZoneEquivalentToServerTimeZoneRule(ExTimeZone clientTZ, ExTimeZone serverTZ, ExDateTime effectiveTime)
        {
            REG_TIMEZONE_INFO reg_TIMEZONE_INFO = TimeZoneHelper.RegTimeZoneInfoFromExTimeZone(clientTZ);
            REG_TIMEZONE_INFO v = TimeZoneHelper.RegTimeZoneInfoFromExTimeZone(serverTZ);

            if (reg_TIMEZONE_INFO.Equals(v))
            {
                return(true);
            }
            REG_TIMEZONE_INFO v2 = TimeZoneHelper.RegTimeZoneInfoFromExTimeZone(serverTZ, effectiveTime);

            return(reg_TIMEZONE_INFO.Equals(v2));
        }
示例#2
0
        protected override ConsistencyCheckResult DetectInconsistencies()
        {
            ConsistencyCheckResult consistencyCheckResult = ConsistencyCheckResult.CreateInstance(base.Type, base.Description);

            if (base.Context.OrganizerItem == null || base.Context.AttendeeItem == null)
            {
                consistencyCheckResult.Status      = CheckStatusType.CheckError;
                consistencyCheckResult.ErrorString = "Either organizer or attendee's calendar item is null";
            }
            else
            {
                ExTimeZone recurringTimeZoneFromPropertyBag = TimeZoneHelper.GetRecurringTimeZoneFromPropertyBag(base.Context.OrganizerItem.PropertyBag);
                if (recurringTimeZoneFromPropertyBag != null)
                {
                    ExTimeZone recurringTimeZoneFromPropertyBag2 = TimeZoneHelper.GetRecurringTimeZoneFromPropertyBag(base.Context.AttendeeItem.PropertyBag);
                    if (recurringTimeZoneFromPropertyBag2 == null)
                    {
                        this.FailCheck(consistencyCheckResult, this.GetLogValue(recurringTimeZoneFromPropertyBag, null), this.GetLogValue(recurringTimeZoneFromPropertyBag2, null));
                    }
                    else
                    {
                        REG_TIMEZONE_INFO value             = TimeZoneHelper.RegTimeZoneInfoFromExTimeZone(recurringTimeZoneFromPropertyBag);
                        REG_TIMEZONE_INFO reg_TIMEZONE_INFO = TimeZoneHelper.RegTimeZoneInfoFromExTimeZone(recurringTimeZoneFromPropertyBag2);
                        if (!value.Equals(reg_TIMEZONE_INFO))
                        {
                            this.FailCheck(consistencyCheckResult, this.GetLogValue(recurringTimeZoneFromPropertyBag, new REG_TIMEZONE_INFO?(value)), this.GetLogValue(recurringTimeZoneFromPropertyBag2, new REG_TIMEZONE_INFO?(reg_TIMEZONE_INFO)));
                        }
                    }
                }
            }
            return(consistencyCheckResult);
        }