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
I've reported exactly the same problem a few weeks ago – seems that in
the manual the wrong key is presented.
Ádám
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);
>
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);
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); *
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' =>
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',
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
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
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);
10 matches
Mail list logo