Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Najro 12 posts 32 karma points
    Jan 26, 2012 @ 13:29
    Najro
    0

    @createDate/@updateDate on article template not being consistent

    Shouldn't these two lines give the same date? 

    <xsl:value-of select="umbraco.library:FormatDateTime(@updateDate, 'd. MMMM yyyy HH:MM')"/>

    <umbraco:Item field="updateDate" formatAsDateWithTime="true" formatAsDateWithTimeSeparator=" " runat="server"></umbraco:Item>

    I get two different time stamps for each of these, often varying in 10-15 minutes. The same goes for @createDate. Any ideas?

    (I'm on Umbraco 4)

  • Najro 12 posts 32 karma points
    Jan 26, 2012 @ 13:41
    Najro
    0

    Nevermind :-)

    I noticed that I'd used HH:MM instead of hh:mm, so I changed it to this: 

    <xsl:value-of select="umbraco.library:FormatDateTime(@updateDate, 'd. MMMM yyyy HH:mm')"/>

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies