From 5b9ac4331ffd9904b5e74c73e0b1d36beb6430fa Mon Sep 17 00:00:00 2001 From: Professor Colin Turner Date: Fri, 13 Mar 2026 08:50:53 +0000 Subject: [PATCH] An attempt to fix deprecated utc usage broke the assessment updates. --- loads/management/commands/email_assessmentupdates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loads/management/commands/email_assessmentupdates.py b/loads/management/commands/email_assessmentupdates.py index 66603c1..9d3cc2c 100644 --- a/loads/management/commands/email_assessmentupdates.py +++ b/loads/management/commands/email_assessmentupdates.py @@ -70,7 +70,7 @@ def handle(self, *args, **options): self.stdout.write(string1) self.stdout.write(string2) # Put set the timestamp to avoid endless repeats from cron jobs - signoff.notified = datetime.datetime.replace(tzinfo=utc) + signoff.notified = datetime.datetime.now(datetime.timezone.utc) signoff.save() else: if self.email_updates_for_signoff(signoff, options):