Use Clock.Now (time-zone aware) for Expired badge in Meows list
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
{
|
||||
<span class="text-muted">—</span>
|
||||
}
|
||||
else if (slide.ExpiresAt.Value <= DateTime.Now)
|
||||
else if (slide.ExpiresAt.Value <= Clock.Now)
|
||||
{
|
||||
<span class="badge bg-danger" title="@slide.ExpiresAt.Value.ToString("dd MMM yyyy HH:mm")"><i class="bi bi-clock-history me-1"></i>Expired</span>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user