Skip to content

Commit

Permalink
fix for #524 datetime_safe removal
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Mar 25, 2023
1 parent 890d13f commit 2561372
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actstream/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 2561372

Please sign in to comment.