Project

General

Profile

Actions

Defect #13557

closed

Error on Gantt chart and calendar in v 2.3.0 with Sql Server

Added by Stéphane POTTIER about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,

After migrating MySQL database to SqlServer database, everything Ok.
But i got an error when accessing Gantt chart (error 500) et the calendar don't show any issues.

Here is the log for the gantt chart

Completed 500 Internal Server Error in 1298ms

ActionView::Template::Error (comparison of Date with ActiveSupport::TimeWithZone failed):
89:
90: # Width of the entire chart
91: g_width = ((@gantt.date_to - @gantt.date_from + 1) * zoom).to_i
92: @gantt.render(:top => headers_height + 8,
93: :zoom => zoom,
94: :g_width => g_width,
95: :subject_width => subject_width)
lib/redmine/helpers/gantt.rb:657:in `>'
lib/redmine/helpers/gantt.rb:657:in `coordinates'
lib/redmine/helpers/gantt.rb:401:in `line_for_issue'
lib/redmine/helpers/gantt.rb:234:in `block in render_issues'
lib/redmine/helpers/gantt.rb:232:in `each'
lib/redmine/helpers/gantt.rb:232:in `render_issues'
lib/redmine/helpers/gantt.rb:219:in `render_project'
lib/redmine/helpers/gantt.rb:201:in `block in render'
app/models/project.rb:733:in `block in project_tree'

Thanks for help

Actions

Also available in: Atom PDF