Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit a49315b

Browse files
KayMKMdarrenj
authored andcommitted
fix test calendar summary by time range time zone issue (#938)
1 parent c70a712 commit a49315b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

solutions/Virtual-Assistant/src/csharp/skills/calendarskill/calendarskilltest/Flow/SummaryCalendarFlowTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ await this.GetTestFlow()
116116
public async Task Test_CalendarSummaryByTimeRange()
117117
{
118118
DateTime now = DateTime.Now;
119-
DateTime startTime = new DateTime(now.Year, now.Month, now.Day, 18, 0, 0);
120-
startTime = startTime.AddDays(1);
119+
DateTime nextWeekDay = now.AddDays(7);
120+
DateTime startTime = new DateTime(nextWeekDay.Year, nextWeekDay.Month, nextWeekDay.Day, 18, 0, 0);
121121
startTime = TimeZoneInfo.ConvertTimeToUtc(startTime);
122122
this.ServiceManager = MockServiceManager.SetMeetingsToSpecial(new List<EventModel>()
123123
{
124124
MockServiceManager.CreateEventModel(
125-
startDateTime: startTime.AddDays(7),
126-
endDateTime: startTime.AddDays(8))
125+
startDateTime: startTime,
126+
endDateTime: startTime.AddHours(1))
127127
});
128128

129129
await this.GetTestFlow()

0 commit comments

Comments
 (0)