This project is read-only.

Last two digits of year always 00

Sep 12, 2011 at 4:30 AM


I have a question about the two digit year format. When I use %Year:s% it seems to always produce 00 for the year in in-text citations. I'm using the IEEE style, but this issue seems to happen for me in other styles as well.

Thanks for any help!

Sep 12, 2011 at 8:56 PM

Seems to be a bug. Instead of the last 2 digits of the year, it takes the middle 2. So if you had a year like 200x, you would indeed see 00.

Look for the line:

<xsl:value-of select="substring($year, 2, 2)"/>

and change it into:

<xsl:value-of select="substring($year, 3, 2)"/>
Sep 19, 2011 at 4:34 AM

Thanks! This fixed it. All the citations I happened to be looking at were 200X as you say so I mistook the middle two digits for always being 00.