Skip to content

Commit 6b78918

Browse files
fix: Ensure UTC date handling for elapsed timer in AssignmentStatus view
1 parent 7de19b7 commit 6b78918

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/XtremeIdiots.Portal.Web/Views/MapRotations/AssignmentStatus.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
{
231231
<text>data-instance-id="@op.DurableFunctionInstanceId"</text>
232232
}
233-
data-started-at="@op.StartedAt.ToString("o")">
233+
data-started-at="@DateTime.SpecifyKind(op.StartedAt, DateTimeKind.Utc).ToString("o")">
234234
<td>@op.OperationType</td>
235235
<td>
236236
@switch (op.Status)
@@ -263,7 +263,7 @@
263263
}
264264
else if (isInProgress)
265265
{
266-
<span class="elapsed-timer" data-started-at="@op.StartedAt.ToString("o")">Calculating...</span>
266+
<span class="elapsed-timer" data-started-at="@DateTime.SpecifyKind(op.StartedAt, DateTimeKind.Utc).ToString("o")">Calculating...</span>
267267
}
268268
</td>
269269
<td>

0 commit comments

Comments
 (0)