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

Pacify eslint and rubocop

Mir Bhatia145d1f6f2b4b
diff --git a/frontend/src/turbo/flash-stream-action.ts b/frontend/src/turbo/flash-stream-action.ts
index ed8fe21828a..ddbe7d0bbc8 100644
--- a/frontend/src/turbo/flash-stream-action.ts
+++ b/frontend/src/turbo/flash-stream-action.ts
@@ -6,7 +6,7 @@ export function registerFlashStreamAction() {
const flash = content.querySelector('.flash') as HTMLElement;
if (flash.dataset.singleton) {
- const elements = document.querySelectorAll('.flash')
+ const elements = document.querySelectorAll('.flash');
elements.forEach((element) => element.parentElement?.remove());
}
diff --git a/modules/meeting/app/controllers/meetings_controller.rb b/modules/meeting/app/controllers/meetings_controller.rb
index 3aca0502c02..217b7d744ee 100644
--- a/modules/meeting/app/controllers/meetings_controller.rb
+++ b/modules/meeting/app/controllers/meetings_controller.rb
@@ -76,7 +76,7 @@ class MeetingsController < ApplicationController
end
def check_for_updates
- if Time.parse(params[:updatedAt]) < @meeting.updated_at.change(usec: 0)
+ if Time.zone.parse(params[:updatedAt]) < @meeting.updated_at.change(usec: 0)
respond_with_flash(Meetings::UpdateFlashComponent.new(meeting: @meeting))
else
head :no_content