Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > RSS transformation View modes: 
User avatar
Member
Member
ryans-tushaus - 4/14/2011 1:58:35 AM
   
RSS transformation
I generated an RSS transformation for CMS.MenuItem in version 5.53789. When I viewed the source code markup, GetRSSDateTime(Eval("DocumentCreatedWhen")) appears to be generating my local time rather than Greenwich mean time followed by GMT. The browser then interprets the markup and adjusts it by subtracting 5 hours because I am in the central time zone and, therefore, displays the document publication date incorrectly as 5 hours earlier than the publication date.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/14/2011 3:07:26 AM
   
RE:RSS transformation
Hi,

you could try to enable time zone module and configured time zones, so the Rss would be generated according to the Greenwich time. For more information please take a look at the time zone module.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
ryans-tushaus - 4/14/2011 10:05:45 AM
   
RE:RSS transformation
Hi,

I had already tried setting the time zone and I just double checked and confirm that settings. It is still outputting the time incorrectly.


<pubDate>Wed, 13 Apr 2011 23:31:47 GMT</pubDate>

Should be

<pubDate>Wed, 14 Apr 2011 04:31:47 GMT</pubDate>


Since I am in the central time zone.

Thanks,
Ryan

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/18/2011 9:49:50 AM
   
RE:RSS transformation
Hi,

could you please try to use following code in the transformation?

<%# GetUserDateTime(Eval(“DocumentCreatedWhen”)).ToString() %>

For more details please take a look at this post.

Best regards,
Ivana Tomanickova