Changeset 12046

Show
Ignore:
Timestamp:
09/06/07 14:05:50 (1 year ago)
Author:
bergie
Message:

The xCal format used by Last.fm seems better than the one Upcoming provides

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/de.bitfolge.feedcreator/feedcreator.php

    r11998 r12046  
    992992        } 
    993993                if (   count($this->items) > 0 
    994                     && isset($this->items[0]->additionalElements['xCal:start']))  
     994                    && isset($this->items[0]->additionalElements['xcal:dtstart']))  
    995995        { 
    996                         $feed.= "    xmlns:xCal=\"urn:ietf:params:xml:ns:xcal\"\n"; 
     996                        $feed.= "    xmlns:xcal=\"urn:ietf:params:xml:ns:xcal\"\n"; 
    997997        } 
    998998        $feed.= ">\n"; 
  • trunk/midcom/net.nemein.calendar/style/feeds-item.php

    r11992 r12046  
    2121 
    2222// Add xCal data to item 
    23 $item->additionalElements['xCal:start'] = gmdate('Ymd\THis\Z', $data['event']->start); 
    24 $item->additionalElements['xCal:end'] = gmdate('Ymd\THis\Z', $data['event']->end); 
     23$item->additionalElements['xcal:dtstart'] = gmdate('Ymd\THis\Z', $data['event']->start); 
     24$item->additionalElements['xcal:dtend'] = gmdate('Ymd\THis\Z', $data['event']->end); 
    2525 
    2626$item->guid = $_MIDCOM->permalinks->create_permalink($data['event']->guid);