diff options
-rw-r--r-- | app/views/projects/gantt.rfpdf | 2 | ||||
-rw-r--r-- | app/views/projects/gantt.rhtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/gantt.rfpdf b/app/views/projects/gantt.rfpdf index f5e64b1b3..a293906ba 100644 --- a/app/views/projects/gantt.rfpdf +++ b/app/views/projects/gantt.rfpdf @@ -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
diff --git a/app/views/projects/gantt.rhtml b/app/views/projects/gantt.rhtml index 16ccb932b..6359f0429 100644 --- a/app/views/projects/gantt.rhtml +++ b/app/views/projects/gantt.rhtml @@ -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 |