Solved

RSS in IE reading wrong time/date

Posted on 2011-03-15
3
2,636 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
Comment Utility
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
Comment Utility
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
Comment Utility
Code example added
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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.
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now