Permalink
Browse files

unfucked the timestamp

  • Loading branch information...
1 parent 5e8d440 commit c608a5e966c3b46bcb99872508254d2216e6ae94 @rsms committed Mar 15, 2010
Showing with 1 addition and 21 deletions.
  1. +1 −21 colloquy/Hunch-Dark.colloquyStyle/Contents/Resources/main.xsl
@@ -169,26 +169,6 @@
<xsl:template name="short-time">
<xsl:param name="date" /> <!-- YYYY-MM-DD HH:MM:SS +/-HHMM -->
- <xsl:choose>
- <xsl:when test="number(substring($date, 12, 2)) &gt; 12">
- <xsl:value-of select="number(substring($date, 12, 2)) - 12" />
- </xsl:when>
- <xsl:when test="number(substring($date, 12, 2)) = 0">
- <xsl:text>12</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="number(substring($date, 12, 2))" />
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>:</xsl:text>
- <xsl:value-of select="substring($date, 15, 2)" />
- <xsl:choose>
- <xsl:when test="number(substring($date, 12, 2)) &gt;= 12">
- <xsl:text>pm</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>am</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:value-of select="substring($date, 12, 5)" />
</xsl:template>
</xsl:stylesheet>

0 comments on commit c608a5e

Please sign in to comment.