[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/events
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2008-04-17 21:00:24
Message-ID: 1208466024.704362.27747.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 798266 by danimo:

time fixes


 M  +3 -3      parse_gm_feed.inc  


--- trunk/www/areas/events/parse_gm_feed.inc #798265:798266
@@ -102,15 +102,15 @@
 
     $when = $item->get_item_tags('http://schemas.google.com/g/2005', 'when');
     $date= $when[0]['attribs']['']['startTime'];
-    $startTime = $date;
-    $endTime= $when[0]['attribs']['']['endTime'];
+    $endDate= $when[0]['attribs']['']['endTime'];
     $unixdate = SimplePie_Misc::parse_date($date);
+    $unixenddate = SimplePie_Misc::parse_date($endDate);
     $where = $item->get_item_tags('http://schemas.google.com/g/2005', 'where');
     $location = $where[0]['attribs']['']['valueString'];
 
     // If there's actually a title here (private events don't have titles) and it's \
not cancelled...  if (strlen(trim($item->get_title()))>1 && $status != "canceled" && \
                strlen(trim($when)) > 0) {
-        $temp[] = array('date'=>$unixdate, 'where'=>$location, \
'title'=>$item->get_title(), 'description'=>$item->get_description(), \
'link'=>$item->get_link(), 'permalink'=>$permalink, 'startTime'=>$startTime, \
'endTime'=>$endTime); +        $temp[] = array('date'=>$unixdate, 'where'=>$location, \
'title'=>$item->get_title(), 'description'=>$item->get_description(), \
'link'=>$item->get_link(), 'permalink'=>$permalink, 'startTime'=>$unixdate, \
'endTime'=>$unixenddate);  }
 
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic