From 2561372dbb73cd6d21376e3204c179801817fafd Mon Sep 17 00:00:00 2001 From: Justin Quick Date: Fri, 24 Mar 2023 22:44:42 -0400 Subject: [PATCH] fix for #524 datetime_safe removal --- actstream/feeds.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actstream/feeds.py b/actstream/feeds.py index d1b05ac8..c29030c2 100644 --- a/actstream/feeds.py +++ b/actstream/feeds.py @@ -7,7 +7,6 @@ from django.contrib.syndication.views import Feed, add_domain from django.contrib.sites.models import Site from django.utils.encoding import force_str -from django.utils import datetime_safe from django.views.generic import View from django.http import HttpResponse, Http404 from django.urls import reverse @@ -45,7 +44,7 @@ def get_uri(self, action, obj=None, date=None): """ if date is None: date = action.timestamp - date = datetime_safe.new_datetime(date).strftime('%Y-%m-%d') + date = date.strftime('%Y-%m-%d') return 'tag:{},{}:{}'.format(Site.objects.get_current().domain, date, self.get_url(action, obj, False))