Use Clock.Now for Expired badge; clarify time zone in form text
This commit is contained in:
@@ -84,9 +84,9 @@
|
|||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<label asp-for="ExpiresAt" class="form-label">Expires</label>
|
<label asp-for="ExpiresAt" class="form-label">Expires</label>
|
||||||
<input asp-for="ExpiresAt" type="datetime-local" class="form-control" />
|
<input asp-for="ExpiresAt" type="datetime-local" class="form-control" />
|
||||||
<div class="form-text">After this time the Meow is automatically skipped on displays — it stays in the library, just not shown. Leave blank for no expiry.</div>
|
<div class="form-text">After this time the Meow is automatically skipped on displays — it stays in the library, just not shown. Leave blank for no expiry. Compared against the server's configured time zone (see the <code>TimeZone</code> setting).</div>
|
||||||
</div>
|
</div>
|
||||||
@if (Model.ExpiresAt.HasValue && Model.ExpiresAt.Value <= DateTime.Now)
|
@if (Model.ExpiresAt.HasValue && Model.ExpiresAt.Value <= Clock.Now)
|
||||||
{
|
{
|
||||||
<span class="badge bg-danger"><i class="bi bi-clock-history me-1"></i>Expired</span>
|
<span class="badge bg-danger"><i class="bi bi-clock-history me-1"></i>Expired</span>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user