Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread till
On Jan 26, 2008 2:33 PM, Joó Ádám <[EMAIL PROTECTED]> wrote: > I've reported exactly the same problem a few weeks ago – seems that in > the manual the wrong key is presented. If in doubt, scroll down to "private function _createEntries(array $data)" at the url (1) and I only see "lastUpdate" in th

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Joó Ádám
I've reported exactly the same problem a few weeks ago – seems that in the manual the wrong key is presented. Ádám

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread till
On Jan 26, 2008 1:05 PM, Bill YILDIRIM <[EMAIL PROTECTED]> wrote: > > Andries, > I have changed the code like this > > list($date, $hours) = split(' ', $newstime); > list($year,$month,$day) = split('-',$date); > list($hour,$min,$sec) = split(':',$hours); >

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Andries Seutens
See my posted code sample, works fine as is. Best, Andriesss Bill YILDIRIM schreef: Andries, I have changed the code like this list($date, $hours) = split(' ', $newstime); list($year,$month,$day) = split('-',$date); list($hour,$min,$sec) = split(':',$hours);

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Bill YILDIRIM
Andries, I have changed the code like this list($date, $hours) = split(' ', $newstime); list($year,$month,$day) = split('-',$date); list($hour,$min,$sec) = split(':',$hours); *$date = mktime($hour, $min, $sec, $month, $day, $year); *

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Andries Seutens
Another thing, the key for publication date is "published" and not pudDate. So use: $feedData = array( 'title' => 'title of the feed', 'link'=> 'canonical url to the feed', 'lastUpdate' => mktime(1, 1, 1, 1, 1, 2007), 'charset' => 'utf-8', 'published' =>

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Andries Seutens
Hello Bill, Zend_Feed's date format expects a timestamp format. It will automaticly convert it to the RFC format. So instead of providing a string date, provide a timestamp, like so: $feedData = array( 'title' => 'title of the feed', 'link'=> 'canonical url to the feed',

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Bill YILDIRIM
Thanks for the quick reply Ionut, Unfortunately I cannot the SQL which retrieves the data. So I cannot use builtin mysql functions. Thanks b Ionut Gabriel Stan wrote: I'm not sure what kind of problem the Zend Feed component can confront when dealing with your code, but if I may, you can extra

Re: [fw-general] Zend_Feed and pubDate

2008-01-26 Thread Ionut Gabriel Stan
I'm not sure what kind of problem the Zend Feed component can confront when dealing with your code, but if I may, you can extract the date as a Unix timestamp directly from MySQL using it's built-in function: UNIX_TIMESTAMP(date), then format it in PHP with a simple: date('r', $row->tim

[fw-general] Zend_Feed and pubDate

2008-01-26 Thread Bill YILDIRIM
Hi there, I have been playing with Zend_Feed since yesterday. I finally managed to create my first rss feed. I have on problem though. This is how I convert mysql datetime to rss date time $newstime = $thisProduct->addDate; list($date, $hours) = split(' ', $newstime);