Skip to content
Snippets Groups Projects
Verified Commit b98e05ec authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix feed TTL

parent 9871f2aa
No related branches found
No related tags found
1 merge request!4Resolve "RSS feed for upcoming events"
Pipeline #56242 passed with warnings
...@@ -684,7 +684,7 @@ class UpcomingEventsRSSFeed(Feed): ...@@ -684,7 +684,7 @@ class UpcomingEventsRSSFeed(Feed):
def ttl(self): def ttl(self):
date_event = Event.upcoming_published_events().order_by("-date_event").first().date_event date_event = Event.upcoming_published_events().order_by("-date_event").first().date_event
date_now = timezone.now() date_now = timezone.now().date()
return (date_event - date_now).seconds return (date_event - date_now).seconds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment