Commit 78b5e57a authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed an unicode problem on gantt (first letter of the day name)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@501 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 10a49d47
......@@ -89,7 +89,7 @@ if show_days
width = zoom
pdf.SetY(y_start + 2 * header_heigth)
pdf.SetX(left)
pdf.Cell(width, height, day_name(wday)[0,1], "LTR", 0, "C")
pdf.Cell(width, height, day_name(wday).first, "LTR", 0, "C")
left = left + width
wday = wday + 1
wday = 1 if wday > 7
......
......@@ -162,7 +162,7 @@ if show_days
width = zoom - 1
%>
<div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="gantt_hdr">
<%= day_name(wday)[0,1] %>
<%= day_name(wday).first %>
</div>
<%
left = left + width+1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment