Solved

RSS in IE reading wrong time/date

Posted on 2011-03-15
3
2,827 Views
Last Modified: 2013-11-18
I have created an ASP.NET page that pulls notices out of an SQL database and renders as an RSS feed. The problem is when I view the RSS feed in Internet Explorer, all pubDates are wrong but all pubDates when I view the source are correct.

Here's an example of one record...
pubDate of notice in RSS in IE: Tuesday, 8 February 2011, 2:56:09 AM [wrong]
pubDate of notice in source: Mon, 07 Feb 2011 16:26:09 PM +0000
pubDate of notice in SQL: 2011-02-07 16:26:09.000
pubDate of notice in Chrome: Mon, 07 Feb 2011 16:26:09 PM +0000

Whys is IE doing this and how can I fix it?
0
Comment
Question by:AdamBock
  • 2
3 Comments
 
LVL 23

Assisted Solution

by:wdosanjos
wdosanjos earned 500 total points
ID: 35144039
It seems IE is assuming your pubDate is in GMT time, and it's converting to your timezone when it displays it.  Try generating your pubDate in the format below converting you time to GMT time:

<pubDate>Mon, 07 Feb 2011 05:56:09 GMT</pubDate>
0
 

Accepted Solution

by:
AdamBock earned 0 total points
ID: 35144181
thanks that set me on the right track.. all works well after converting to universal time...
myDate = myDate.ToUniversalTime();

Open in new window

0
 

Author Closing Comment

by:AdamBock
ID: 35174655
Code example added
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question