]> source.dussan.org Git - redmine.git/commitdiff
Fixed an unicode problem on gantt (first letter of the day name)
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 2 May 2007 19:13:38 +0000 (19:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 2 May 2007 19:13:38 +0000 (19:13 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@501 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/gantt.rfpdf
app/views/projects/gantt.rhtml

index f5e64b1b3bd34efc37402fd44d349129a6039945..a293906ba668c474c8eafb97d41b7d80631e2f6f 100644 (file)
@@ -89,7 +89,7 @@ if show_days
                width = zoom\r
                pdf.SetY(y_start + 2 * header_heigth)\r
                pdf.SetX(left)\r
-               pdf.Cell(width, height, day_name(wday)[0,1], "LTR", 0, "C")\r
+               pdf.Cell(width, height, day_name(wday).first, "LTR", 0, "C")\r
                left = left + width\r
                wday = wday + 1\r
                wday = 1 if wday > 7\r
index 16ccb932b182b2d01de1e2d33f565b12d01b2866..6359f04293af5bf96d6ed73c6485cca3c2824f17 100644 (file)
@@ -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