Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unfucked the timestamp

  • Loading branch information...
commit c608a5e966c3b46bcb99872508254d2216e6ae94 1 parent 5e8d440
@rsms authored
Showing with 1 addition and 21 deletions.
  1. +1 −21 colloquy/Hunch-Dark.colloquyStyle/Contents/Resources/main.xsl
View
22 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>
Please sign in to comment.
Something went wrong with that request. Please try again.