From 6b1ae214361f533e53d8993a530e5d2b17c4f4e9 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 17 Nov 2023 16:03:19 -0500 Subject: gtd: fixed some bugs in RSS updater --- app/gtd/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/gtd/models.py') diff --git a/app/gtd/models.py b/app/gtd/models.py index f54ac3a..22af090 100644 --- a/app/gtd/models.py +++ b/app/gtd/models.py @@ -223,7 +223,7 @@ class WiredPost(models.Model): def save(self, *args, **kwargs): if self.date_last_pub: - td = timezone.localdate() - self.date_last_pub + td = datetime.date.today() - self.date_last_pub if td.days > self.update_frequency and self.post_status != 1: self.needs_update = True else: -- cgit v1.2.3-70-g09d2