[Dotproject-general] Gantt chart 'week' labels solution?
Brought to you by:
ajdonnison,
kchisholm
From: <tme...@ba...> - 2004-05-14 00:06:39
|
Hello Everyone, My name is Tom, and I am now using dotproject and am new to this list. I like the software alot, but the bug involving Gantt chart and the 'week' labels is driving me crazy. I had a look at it, and from what I see so far is that JPGraph doesn't support all of the date format options that dotproject does, which is really the root of the problem. From what I see in the dotproject code, it is hard-coded to WEEKSTYLE_FIRSTDAY because that is probably the best option for all given the limitation in JPGraph. For us in the US, we like to format our dates as: 5/13 (for May 13th). I just downloaded the latest stable from the JPGraph guys, and they still seem to only support the same options. I can come up with new constants for JPGraph and submit these to them, and submit a patch to you as well, so that it will support all of those formats (probably more of a chore than I realize, I'm sure). However, I am curious to know why this wasn't done before. Have you found that the JPGraph folks are unreceptive to patches? I noticed that their bug system was down, and it wasn't immediately apparent to me as to how to submit patches from their site. Anything I should know before embarking on this? For those of us who need this now, and want to 'cheat', you can simply change the format string passed to the date function on line 1017 (dotproject 1.0.2) of jpgraph_gantt.php (located in lib\jpgraph\src) to be whatever you like. For example, for me, I can just switch the string from "j/n" to "n/j" and that will give me the 5/13 (May 13th) format that I like. Of course, this is not the correct way to do this, and it will not be hooked up to the GUI nor will it withstand an upgrade. But, it does work today. So, before I embark on this journey, got any tips, info or advice? Thanks, Tom |