summaryrefslogtreecommitdiff
path: root/app/gtd/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-17 16:03:19 -0500
committerluxagraf <sng@luxagraf.net>2023-11-17 16:03:19 -0500
commit6b1ae214361f533e53d8993a530e5d2b17c4f4e9 (patch)
tree6617a570f8ded12c300d9ea9025dc21962e1d613 /app/gtd/models.py
parent6d588f8ff8a9938699a2af14c33d80eb33dca818 (diff)
gtd: fixed some bugs in RSS updater
Diffstat (limited to 'app/gtd/models.py')
-rw-r--r--app/gtd/models.py2
1 files changed, 1 insertions, 1 deletions
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: