Skip to content

Commit

Permalink
fix: datetime issues ticketing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD authored and jvandaal committed Sep 9, 2024
1 parent e45c2c2 commit f1b12e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Ops.Web/Pages/Ticketing.razor
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ else
<a href="@(CreateTicketingUrl(ticket.TicketId))" target="_blank">@ticket.TicketId</a>
</td>
<td>@ticket.Status</td>
<td>@ticket.Created.ToString("s")</td>
<td>@ticket.LastModified.ToString("s")</td>
<td>@ticket.Created.ToLocalTime().ToString("s")</td>
<td>@ticket.LastModified.ToLocalTime().ToString("s")</td>
@* <td> *@
@* <a class="btn btn-info" @onclick="() => OpenDialog(ticket.TicketId, TicketStatus.Complete)">Complete</a> *@
@* <a class="btn btn-warning" @onclick="() => OpenDialog(ticket.TicketId, TicketStatus.Error)">Error</a> *@
Expand Down
8 changes: 4 additions & 4 deletions src/Ops.Web/Ticketing/TicketsFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public void OpenTicketsOfToday()
Statuses[TicketStatus.Error] = false;
Statuses[TicketStatus.Complete] = false;

Since = DateTimeOffset.Now.Date;
To = DateTimeOffset.Now.Subtract(TimeSpan.FromMinutes(MinutesAfterStaleTicket)).DateTime;
Since = DateTime.Now.Date;
To = DateTime.Now.Subtract(TimeSpan.FromMinutes(MinutesAfterStaleTicket));

CurrentPage = 1;
}
Expand All @@ -72,8 +72,8 @@ public void OpenTicketsLastThreeDays()
Statuses[TicketStatus.Error] = false;
Statuses[TicketStatus.Complete] = false;

Since = DateTimeOffset.Now.Date.Subtract(TimeSpan.FromDays(3));
To = DateTimeOffset.Now.Subtract(TimeSpan.FromMinutes(MinutesAfterStaleTicket)).DateTime;
Since = DateTime.Now.Date.Subtract(TimeSpan.FromDays(3));
To = DateTime.Now.Subtract(TimeSpan.FromMinutes(MinutesAfterStaleTicket));

CurrentPage = 1;
}
Expand Down

0 comments on commit f1b12e1

Please sign in to comment.