Changeset 17928

Show
Ignore:
Timestamp:
08/22/08 06:45:32 (3 months ago)
Author:
sjmittal
Message:

fix for bug-4012

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/web/jsp/process/modifyPhase.jsp

    r17766 r17928  
    2323            net.project.xml.XMLFormatter, 
    2424            net.project.process.ProgressReportingMethod, 
     25            net.project.util.DateFormat, 
    2526            net.project.util.Validator" 
    2627%> 
     
    220221        self.document.getElementById("phase.percentComplete").className = cssClass; 
    221222        self.document.getElementById("percentcomplete").disabled = isFieldDisabled; 
    222         <%-- bfd-3281: Calendar image is enabled when the  
    223 Manually report&.this phase 
    224  option is not selected.--%> 
     223        <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 
    225224        if(isFieldDisabled){ 
    226225                self.document.getElementById("star").style.visibility ='hidden'; 
     
    232231        } 
    233232        else{ 
    234                 <%java.text.SimpleDateFormat sf = new java.text.SimpleDateFormat("M/d/yy");%> 
     233                <%DateFormat sf = DateFormat.getInstance();%> 
    235234                self.document.getElementById("star").style.visibility ='visible'; 
    236235                self.document.getElementById("endd").style.visibility ='visible'; 
    237                 self.document.getElementById("startdate").value = "<%try{ out.print(sf.format(m_phase.getStart()));}catch(Exception ee){} %>"; 
    238             self.document.getElementById("enddate").value = "<% try{ out.print(sf.format(m_phase.getEnd()));}catch(Exception ee){} %>"; 
     236                self.document.getElementById("startdate").value = "<%try{ out.print(sf.formatDate(m_phase.getStart()));}catch(Exception ee){} %>"; 
     237            self.document.getElementById("enddate").value = "<% try{ out.print(sf.formatDate(m_phase.getEnd()));}catch(Exception ee){} %>"; 
    239238                self.document.getElementById("percentcomplete").value = "<%try{ out.print(Math.round(Float.parseFloat(m_phase.getPercentComplete())));}catch(Exception ee){} %>"; 
    240239         } 
     
    383382                    <td nowrap> 
    384383                            <input type="text" id="startdate" name="startdate" size="10" maxlength="10" value="<%=startDefault%>"> 
    385         <%-- bfd-3281: Calendar image is enabled when the  
    386 Manually report&.this phase 
    387  option is not selected.--%> 
     384        <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 
    388385                          <span id="star" style="visibility:hidden"> <util:insertCalendarPopup fieldName="startdate" /></span> 
    389386                    </td> 
     
    392389                    <td nowrap> 
    393390                            <input type="text" id="enddate" name="enddate" size="10" maxlength="10" value="<%=endDefault%>"> 
    394         <%-- bfd-3281: Calendar image is enabled when the  
    395 Manually report&.this phase 
    396  option is not selected.--%> 
     391        <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 
    397392                         <span id="endd" style="visibility:hidden">  <util:insertCalendarPopup fieldName="enddate" /></span> 
    398393                    </td>