Skip to content

Commit

Permalink
SB-429: converted datetime format in ccw notifications service
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-brwang committed Nov 13, 2024
1 parent d38304b commit a29a056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Server/SchoolBusAPI/Services/CCWNotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,15 @@ public List<CCWNotificationViewModel> GetNotifications(DateTime dateFrom, DateTi

dateFrom = DateUtils.ConvertPacificToUtcTime(
new DateTime(dateFrom.Year, dateFrom.Month, dateFrom.Day, 0, 0, 0));
dateFrom = DateTime.SpecifyKind(dateFrom, DateTimeKind.Unspecified);



dateTo = DateUtils.ConvertPacificToUtcTime(
new DateTime(dateTo.Year, dateTo.Month, dateTo.Day, 0, 0, 0))
.AddDays(1)
.AddSeconds(-1);
dateTo = DateTime.SpecifyKind(dateTo, DateTimeKind.Unspecified);

var notifications = data.SelectMany(x => x.CCWNotifications)
.Include(x => x.CCWNotificationDetails)
Expand Down

0 comments on commit a29a056

Please sign in to comment.