Thanks Antoine,
Basically that does confirm that the problem is in the JavaScript
conversion from string to date format.
Can you try another test... If you use currentDate = new Date("août,
25 2008") do you get back a valid date?
If you do, then try changing the last template in StatisticsGraphs.xsl
to read as follows:
<!-- Create JSON statistic representation for each build -->
<xsl:template match="statistics/integration" xml:space="preserve">
{'BuildLabel' : '<xsl:apply-templates select="@build-label" />',
'Status' : '<xsl:value-of select="@status"/>', <xsl:for-each
select="[EMAIL PROTECTED] != '']">'<xsl:apply-templates select="@name" /
>' : '<xsl:apply-templates select="." />', </xsl:for-each> 'Date':
'<xsl:value-of select="@month"/>, <xsl:value-of select="@day"/>
<xsl:value-of select="@year"/>'}<xsl:if test="position() != count(//
integration)">,</xsl:if></xsl:template>
Regards,
Richard