|
|
#1 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
I have a PHP generating an RSS feed for my blog. I recently moved servers and the servers posts the date differently and firefox doesn't seem to like the newer dates as it doesnt show them up in my RSS feed. Other browsers dont seem to have a problem however.
Take a look here: http://www.skepticize.me/subscribe/rss.php So the new server shows things like (which firefox doesn't like): <pubDate>Sun, 02 Oct 11 20:01:36 -0400</pubDate> Old sever shows things like (which works fine): <pubDate>Sat, 04 Jun 2011 14:22:27 MDT</pubDate> This is the PHP code I have which generates and saves dates: $blogdate = date(DATE_RFC822); It seems the new server is giving -0400 which firefox doesn't like. Any suggestions on fixing this? Keep in mind I'm somewhat of a PHP newbie.
__________________
http://www.skepticize.me |
|
|
|
|
|
#2 |
|
Bronze Member
![]() |
Perhaps it has to do with a parameter in your PHP.ini file? Otherwise, you can format your date() function manually in a way Firefox likes.
I think you might have a problem with firefox, though, because my site uses the +0000 format and Firefox has no problem with it (FF7)
__________________
Nicolas Bouliane Web designer/developer in Granby, Québec |
|
|
|
|
|
#3 | |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Quote:
__________________
http://www.skepticize.me |
|
|
|
|
|
|
#4 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Update! I tried it on another firefox browser and computer. The RSS still opens and shows all the entries but it won't show the newer dates with the -0400. Weird!
__________________
http://www.skepticize.me |
|
|
|
|
|
#5 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Anyone have any other suggestions for this Firefox quirk? If all else fails, maybe I can contact the firefox team about this?
__________________
http://www.skepticize.me |
|
|
|
|
|
#6 |
|
Gold Member
![]() Join Date: Feb 2011
Location: Australia
Posts: 369
|
If you set the default timezone in PHP does that help the issue?
Code:
date_default_timezone_set('MDT');
__________________
Jason H. DHDdirect.com Domains - Hosting - Design |
|
|
|
|
|
#7 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Thanks DHD! I think that is the solution!
__________________
http://www.skepticize.me |
|
|
|
![]() |
| Tags |
| date, php, rss |
| Thread Tools | |
| Display Modes | |
|
|