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

Commit 86e9dcd

Browse files
authored
fix search by time in prompt (#2646)
1 parent a4f9cef commit 86e9dcd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

skills/csharp/calendarskill/Prompts/GetEventPrompt.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ private async Task<IList<EventModel>> GetEventsWithStartTime(IList<DateTimeResol
141141
continue;
142142
}
143143

144-
startTimeValue = TimeConverter.ConvertLuisLocalToUtc(startTimeValue, userTimeZone);
145-
endTimeValue = TimeConverter.ConvertLuisLocalToUtc(endTimeValue, userTimeZone);
146-
147144
startDateList.Add(startTimeValue);
148145
startTimeList.Add(startTimeValue);
149146
endDateList.Add(endTimeValue);
@@ -158,8 +155,6 @@ private async Task<IList<EventModel>> GetEventsWithStartTime(IList<DateTimeResol
158155
}
159156

160157
var dateTimeConvertType = resolution.Timex;
161-
162-
startTimeValue = TimeConverter.ConvertLuisLocalToUtc(startTimeValue, userTimeZone);
163158
if (CalendarCommonUtil.ContainsTime(dateTimeConvertType))
164159
{
165160
startTimeList.Add(startTimeValue);

0 commit comments

Comments
 (0)