View Single Post
  #2 (permalink)  
Old 01-02-2007, 10:19 AM
Jim
Newsgroup Contributor
 
Posts: n/a
Re: Vista Feed Headlines gadget - wrong date>

On Sun, 26 Nov 2006 21:53:22 GMT, Jim <jim@nospam.com> wrote:
[color=blue]
>Hi all,
>
>When I use the Feed Headlines gadget in Vista to view a feed, e.g.
>
>[url]http://www.phpfreenews.co.uk/forums/rss.php[/url]
>
>All the articles come out as Saturday 30th December. Yet they show
>with the correct date when viewed in the IE7 feed viewer.
>
>Any ideas?
>
>
>
>Jim[/color]


For the benefit of Google indexing, I'll post the answer to my own
question.

The default date format from the PHP date command is to show the
timezone as +0000 or +0001 etc.

The Microsoft Feed gadget can't cope with this, it needs the dates to
show GMT etc. So my PHP now uses:

<pubDate><?= date("D, d M Y H:i:s e", $ArticleDate) ?></pubDate>

which shows up correctly in the gadget.



Jim
Reply With Quote

 
Old 01-02-2007, 10:19 AM