Solved

RSS in IE reading wrong time/date

Posted on 2011-03-15
3
2,868 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

738 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