Use Clock.Now for Expired badge; clarify time zone in form text

This commit is contained in:
2026-08-23 00:06:45 +10:00
parent 470717b7e3
commit a4522a4f51
+2 -2
View File
@@ -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>
} }