?
Solved

RSS in IE reading wrong time/date

Posted on 2011-03-15
3
Medium Priority
?
2,979 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 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

752 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