Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use datetime object for timestamps, not dates

Oliver Günther3fdbc9d1c0e3
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
index ac88c82d75c..3e0556a49d2 100644
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -45,7 +45,7 @@ class ActivitiesController < ApplicationController
author: @author,
scope: activity_scope)
- events = @activity.events(@date_from, @date_to)
+ events = @activity.events(@date_from.to_datetime, @date_to.to_datetime)
respond_to do |format|
format.html do