Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ComplexProperties/TimeZones/TimeZoneTransitionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal virtual void InitializeFromAdjustmentRule(AdjustmentRule adjustmentRule
standardPeriodToSet.Id = string.Format(
"{0}/{1}",
standardPeriod.Id,
adjustmentRule.DateStart.Year);
adjustmentRule.DateSTart.ToString("yyyyMMdd"));
standardPeriodToSet.Name = standardPeriod.Name;
standardPeriodToSet.Bias = standardPeriod.Bias;
this.timeZoneDefinition.Periods.Add(standardPeriodToSet.Id, standardPeriodToSet);
Expand All @@ -143,7 +143,7 @@ internal virtual void InitializeFromAdjustmentRule(AdjustmentRule adjustmentRule
daylightPeriod.Id = string.Format(
"{0}/{1}",
TimeZonePeriod.DaylightPeriodId,
adjustmentRule.DateStart.Year);
adjustmentRule.DateSTart.ToString("yyyyMMdd"));
daylightPeriod.Name = TimeZonePeriod.DaylightPeriodName;
daylightPeriod.Bias = standardPeriod.Bias - adjustmentRule.DaylightDelta;

Expand All @@ -158,7 +158,7 @@ internal virtual void InitializeFromAdjustmentRule(AdjustmentRule adjustmentRule
standardPeriodToSet.Id = string.Format(
"{0}/{1}",
standardPeriod.Id,
adjustmentRule.DateStart.Year);
adjustmentRule.DateSTart.ToString("yyyyMMdd"));
standardPeriodToSet.Name = standardPeriod.Name;
standardPeriodToSet.Bias = standardPeriod.Bias;
this.timeZoneDefinition.Periods.Add(standardPeriodToSet.Id, standardPeriodToSet);
Expand Down
2 changes: 1 addition & 1 deletion Core/EwsHttpWebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public async Task<IEwsHttpWebResponse> GetResponse(CancellationToken token)
HttpResponseMessage response = null;
try
{
response = await _httpClient.SendAsync(message, token);
response = await _httpClient.SendAsync(message, HttpCompletionOption.ResponseHeadersRead., token);
}
catch(Exception exception)
{
Expand Down