Copied to clipboard

Flag this post as spam?

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


  • Christian Kragh 14 posts 34 karma points
    Oct 24, 2010 @ 01:11
    Christian Kragh
    0

    RSS Timezone

    Hey.

    In my RSS xslt i get the time out in this format.
    Sun, 24 Oct 2010 11:30:00 GMT

    How do i convert this string to local time?

    Sun, 24 Oct 2010 11:30:00 +01:00:00 for Denmark?

    Best regards
    Christian Kragh

  • Max Mumford 266 posts 293 karma points
    Jul 26, 2011 @ 13:43
    Max Mumford
    0

    For your, or anybody elses reference, you can use "r" to output a date format that validates according to the official RSS requirements:

    http://validator.w3.org/feed/docs/error/InvalidRFC2822Date.html

      <pubDate><xsl:value-of select="umbraco.library:FormatDateTime($currentPage/@createDate,'r')"/></pubDate>

  • George Gooding 20 posts 42 karma points
    Aug 01, 2011 @ 14:47
    George Gooding
    0

    That doesn't help with the timezone, as using the "r" format will just print out GMT. Apparently there is no way to set the timezone to use in Umbraco, which is quite strange for a CMS. That would be all well and good if the times saved were in GMT but they are saved in local time (server time).

    Umbraco should really get a fix for this.

  • Max Mumford 266 posts 293 karma points
    Aug 01, 2011 @ 18:41
    Max Mumford
    0

    Your right, I meant to post this in another thread! Still might be helpful for some :)

Please Sign in or register to post replies

Write your reply to:

Draft