View Full Version : RSS feed not processing time correctly
AaronGNP
06-23-2005, 01:56 AM
OK, this one has me flustered.
http://www.two-miles.com/pixelpost/index.php?x=rss
It's formatting the time as -050, when it should be -0500.
If it matters, I've got no add-ons installed, and I'm running an altered version of the pixelpost-light template. As far as I can tell the RSS date is all formatted with the PHP file and shouldn't touch the template, but this is driving me nuts!
HELP!
AGNP
P.S. I'm running the newest version (1.4.1)
Connie
06-23-2005, 04:50 AM
Aaron,
could you try to change the date in the admin/options/date format ?
which date format did you use there?
"d. m. Y" or something else?
I would like to know that because I wrote that RSS-part and I never encountered this problem
AaronGNP
06-23-2005, 06:13 AM
Aaron,
could you try to change the date in the admin/options/date format ?
which date format did you use there?
"d. m. Y" or something else?
I would like to know that because I wrote that RSS-part and I never encountered this problem
I was using the default (which was giving me the error), and then tried a different format, with the same results.
I've also tried changing the GMT offset, yet again with the same results.
Seems bizarre to me...
AGNP
AaronGNP
06-24-2005, 01:31 PM
I don't know if this helps, but looking at the RSS source (In Firefox), I'm seeing something very funky:
http://www.two-miles.com/crap/pubDate.gif
Notice what appears to be an unsupported ASCII character and the accent over the "P". I looked at the index.php, and nothing seems out of sorts (although I don't program php), but this just has me stumped.
Again, my index.php is the unedited version that came in the pixelpost zip-file.
AGNP
Connie
06-24-2005, 03:03 PM
AAron,
did you upload the file in ASCII-mode? Sometimes the ftp uploads in binary mode and then soem characters are destroyed.. or modified
please try the following:
rename the index.php at the server (maybe index.php.old)
upload again the index.php to the server, taking care that the file is uploaded in ASCII mode..
maybe that helps
if ok, you can delete the renamed index.php at the server
AaronGNP
06-24-2005, 04:19 PM
Nope... Just tried it, same results...
This is WEIRD.
AGNP
AaronGNP
07-07-2005, 06:01 PM
I've had my pblog running for a week or two now, and it doesn't seem to be an isolated error. Does anyone have any ideas what could be causing this problem?
http://www.two-miles.com/pixelpost/index.php?x=rss
I love pixelpost, and would love to be able to use my RSS feed.
AGNP
Connie
07-07-2005, 07:52 PM
1) is your template UNICODE or some other codepage?
2) could it be that your server has some codepage settings which override the codepage of the template
because the RSS code which we made validates absolutely correct
there must be something special at your installation, I have no idea what it could be
raminia
07-07-2005, 08:15 PM
if you have a language file which is saved as UTF-8 or a template file which is saved UTF-8 with notepad or ultrapad or some other editors, open it with Unipad (editor software) and delete some extra characters at the top of the file (the very early characters which are nonsence) that microsoft has put there to be a bug for php!
(these are extra characters to show it's UTF-8 to windows although it's not necessary and in case of php include it's annoying!)
AaronGNP
09-28-2005, 07:05 AM
It's working now!
Just to let everyone know, I think I figured out the reason why PP was parsing the RSS dates incorrectly.
MySQL
It was recently upgraded on my server, and now all of a sudden, it's parsing correctly.
So next time someone says something of improperly parsed dates, make sure their host has a recent version of MySQL!
AGNP
So next time someone says something of improperly parsed dates, make sure their host has a recent version of MySQL!
AGNP
From one side true but on other hand make sure that you have well configured MySQL!!! Default date format can be set also there :D
AaronGNP
09-28-2005, 07:45 AM
From one side true but on other hand make sure that you have well configured MySQL!!! Default date format can be set also there :D
Correct as well! I'm rather certain that the old build of MySQL met the minimum version number requirement by PP, but it could be that with the new install, it also got rid of flukey MySQL settings, as my host (read: friend) is an admitted non-expert with SQL.
AGNP
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.