Use UtcNow instead of Now for internal time keeping (#965)

This commit is contained in:
Josh 2024-01-20 15:24:28 -06:00 committed by GitHub
commit 092f8bc5a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 26 additions and 26 deletions

View file

@ -26,7 +26,7 @@ public class ModerationCaseController : ControllerBase
ModerationCaseEntity? @case = await this.database.Cases.FirstOrDefaultAsync(c => c.CaseId == id);
if (@case == null) return this.NotFound();
@case.DismissedAt = DateTime.Now;
@case.DismissedAt = DateTime.UtcNow;
@case.DismisserId = user.UserId;
@case.DismisserUsername = user.Username;