Subject: | DateDisplayFormatBug |
Date: | Thu, 5 Mar 2015 14:36:10 -0500 |
To: | <bug-RT-Extension-JSGantt [...] rt.cpan.org> |
From: | "Michael Malambri" <michael.malambri [...] photon-x.com> |
Hello,
I was using JSgantt 1.00 with RT 4.0.4 and the date was displaying as
dd/mm/yy. We would like it to be mm/dd/yy or mm/dd/yyyy. So, I noticed in
your documentation there was the DateDisplayFormat option. I inserted this
code into my RT_SiteConfig.pm as follows:
Set(@Plugins, qw(RT::Extension::JSGantt));
Set(
%JSGanttOptions,
DefaultFormat => 'day', # or week or month or quarter
ShowOwner => 1,
ShowProgress => 1,
ShowDuration => 1,
# CaptionType => 'Resource',
# ShowStartDate => 1,
# ShowEndDate => 1,
# DateInputFormat => 'mm/dd/yyyy',
DateDisplayFormat => 'mm/dd/yyyy',
NullDatesColor => 333,
WorkingHoursPerDay => 8,
DefaultDays => 7,
);
And the date does not change. So I upgraded to JSgantt 1.03 and tried again.
Still the day was before the month. So I tried messging around with the
options. I knew I was saving the file and the changes were going through
because when I change the DefaultFormat, the webpage refected the change.
A few things that I could not get to work were the following parameters:
CaptionType => 'Resource',
ShowStartDate => 1,
ShowEndDate => 1,
DateInputFormat => 'mm/dd/yyyy',
DateDisplayFormat => 'mm/dd/yyyy',
Changing the value of these does nothing for my plugin. If there is anymore
information I can provide you please let me know. Also if you know of a
solution to this that would be awesome too!
Mike