From: Andrew T. <ajt...@hi...> - 2006-03-17 05:12:37
|
On 3/16/06, Kevin <ke...@dr...> wrote: > Evan Roth wrote: > > Hi Guys, and gal(s) > > > > > Welcome Evan. The list has been a bit slow over the last few weeks. I > expect things will pick up after the 0.3 release. (hint hint: Andrew) Yes yes, welcome - we always welcome new users/supporters. Oh - yeah, I haven't pushed that - my bad. I will be out of town this weekend, but I think the last thing I had done was thrown out there the question to all devs if they felt good about an 0.3 release. I think we should go ahead with it, but not necessarily push it as a big release, since we know we're making severe (and grand) UI changes and some DB changes (specifically search) I will tag the CVS (or Subversion, you said they're linked, right) as Release Candidate 0.3, we'll do testing this weekend and early next week. Plan on release by the end of next week. > > After installing fofredux, and importing my feeds and their > > corresponding items (i don't delete anything), i noticed that updates > > on some of the feeds were losing their dates. They were in fact > > defaulting to 01-01-1970, and it was all atom (see anything at > > blogger.com <http://blogger.com>) and RSS1.0 (e.g. slashdot), which is > > actually the Atom format. RSS 2.0 feeds are fine. > > > What version of fofredux are you using? I subscribe to slashdot also > and don't see this behavior with a recent CVS snapshot. > > > Digging through the code, i realized it's not entirely our problem, as > > we call the magpie parsing function parse_w3cdtf for those two types > > of feeds, which is not functioning as desired. In fact, these dates > > are not w3c standard: w3c contains no : in the timezone, whereas Atom > > time does. > > > > The fix for this problem...at least so far on my side...is to simply > > replace this function with the native PHP strtotime() twice in init.php= . > > I've tested on PHP 5.0.5 and 5.1.2 with success. Don't have any php > > 4.X.X running here. > > > > I guess the real fix would be to repair the magpie function...but I'm > > not sure it's necessary when php provides native support. > > > > Hope that might help anyone else out there with a similar > > problem...and let me know if i've destroyed something in the process. > I'm fine with converting to a php builtin function as long as it behaves > the same. According to the php site, strtotime() has been around since > version 3. There has to be some reason why magpierss includes it's own > implementation. Perhaps they didn't realize it was available? But that would be suprising. We should submit this fix to our respository, and include it in testing. Andrew -- Andrew Turner ajt...@hi... 42.4266N x 83.4931W http://highearthorbit.com Northville, Michigan, USA |