]> granicus.if.org Git - docbook-dsssl/commitdiff
Check for localTime function before calling it
authorNorman Walsh <ndw@nwalsh.com>
Sun, 16 Feb 2003 17:21:20 +0000 (17:21 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 16 Feb 2003 17:21:20 +0000 (17:21 +0000)
website/xsl/rss.xsl

index 9ea7fbd767fb183d6f47f23c777066fb8ed2b4d6..f90eb255ad407ae5903af135e1d5d715f7a20e71 100644 (file)
@@ -79,7 +79,7 @@
           <xsl:value-of select="../dc:date[1]"/>
           <xsl:text>)</xsl:text>
         </xsl:when>
-        <xsl:otherwise>
+        <xsl:when test="function-available('cvsf:localTime')">
           <xsl:variable name="timeString" select="cvsf:localTime(../cvs:date[1])"/>
           <xsl:text> (</xsl:text>
           <xsl:value-of select="substring($timeString, 1, 3)"/>
@@ -90,6 +90,9 @@
           <xsl:text> </xsl:text>
           <xsl:value-of select="substring($timeString, 25, 4)"/>
           <xsl:text>)</xsl:text>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="../cvs:date[1]"/>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:if>