diff --git a/accounts/templates/accounts/profile.html b/accounts/templates/accounts/profile.html index 9a54ced..945c2df 100644 --- a/accounts/templates/accounts/profile.html +++ b/accounts/templates/accounts/profile.html @@ -20,6 +20,8 @@ {{event.time|time:"TIME_FORMAT"}} Edit + {% empty %} +

Nothing for today.

{% endfor %} diff --git a/accounts/views.py b/accounts/views.py index 1d0ffad..3489992 100755 --- a/accounts/views.py +++ b/accounts/views.py @@ -21,9 +21,9 @@ class ProfileView(LoginRequiredMixin, TemplateView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - today = date.today() + today = timezone.localtime(timezone.now()).date() tomorrow = today + timedelta(days=1) - enddate = today + timedelta(days=6) + enddate = today + timedelta(days=7) context['profile'] = self.request.user.profile context['latest_activity'] = LogEntry.objects.all()[:10] context['today'] = Event.objects.filter(