svn commit: r647481 - /ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r647481 - /ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl

jleroux@apache.org
Author: jleroux
Date: Sat Apr 12 10:55:39 2008
New Revision: 647481

URL: http://svn.apache.org/viewvc?rev=647481&view=rev
Log:
A patch from Krzysztof Podejma "Firefox view gantt chart bug" (https://issues.apache.org/jira/browse/OFBIZ-1746) - OFBIZ-1746

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl

Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl?rev=647481&r1=647480&r2=647481&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/gantChart.ftl Sat Apr 12 10:55:39 2008
@@ -37,14 +37,14 @@
         <#if tasks?has_content>
         <#list tasks as taskNode>
                 <#if taskNode.estimatedStartDate?exists>
-                   var dtStart = new Date("${taskNode.estimatedStartDate?string.short}");
+                   var dtStart = new Date("${taskNode.estimatedStartDate?string("yyyy/MM/dd HH:mm")}");
                    <#else>
-                   var dtStart = new Date("${chartStart?string.short}");
+                   var dtStart = new Date("${chartStart?string("yyyy/MM/dd HH:mm")}");
                 </#if>
                 <#if taskNode.estimatedCompletionDate?exists>
-                    var dtEnd = new Date("${taskNode.estimatedCompletionDate?string.short}");
+                    var dtEnd = new Date("${taskNode.estimatedCompletionDate?string("yyyy/MM/dd HH:mm")}");
                    <#else>
-                   var dtEnd = new Date("${chartEnd?string.short}");
+                   var dtEnd = new Date("${chartEnd?string("yyyy/MM/dd HH:mm")}");
                 </#if>
             <#if taskNode.phaseName?exists>
                 json.push({high: dtEnd.getTime(), low: dtStart.getTime(), task: "${taskNode.phaseName}", type: "p"});
@@ -55,8 +55,8 @@
         </#if>
 
             //Parameters
-            var chartStart = new Date("${chartStart?string.short}");
-            var dEnd = new Date("${chartEnd?string.short}");
+            var chartStart = new Date("${chartStart?string("yyyy/MM/dd HH:mm")}");
+            var dEnd = new Date("${chartEnd?string("yyyy/MM/dd HH:mm")}");
 //          var duration = 14;      //Duration of the chart
             //Calculated parameters
             var nbDays = dojo.date.diff(chartStart, dtEnd, interv);
@@ -308,4 +308,4 @@
  <#list tasks as taskNode>
  <br/>
  </#list>
-</#if>
\ No newline at end of file
+</#if>