Changeset 8451


Ignore:
Timestamp:
01/03/11 12:15:32 (8 years ago)
Author:
plg
Message:

bug 2094 fixed: correct date format for feedcreator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/feed.php

    r6663 r8451  
    3939function datetime_to_ts($datetime) 
    4040{ 
    41   $date = strptime($datetime, '%Y-%m-%d %H:%M:%S'); 
    42   return mktime($date['tm_hour'], $date['tm_min'], $date['tm_sec'], 
    43                 $date['tm_mon'], $date['tm_mday'], 1900+$date['tm_year']); 
     41  return strtotime($datetime); 
    4442} 
    4543 
     
    137135    $item->descriptionHtmlSyndicated = true; 
    138136 
    139     $item->date = $dbnow; 
     137    $item->date = ts_to_iso8601(datetime_to_ts($dbnow)); 
    140138    $item->author = $conf['rss_feed_author']; 
    141139    $item->guid= sprintf('%s', $dbnow);; 
     
    189187  $item->descriptionHtmlSyndicated = true; 
    190188 
    191   $item->date = $date; 
     189  $item->date = ts_to_iso8601(datetime_to_ts($date)); 
    192190  $item->author = $conf['rss_feed_author']; 
    193191  $item->guid= sprintf('%s', 'pics-'.$date);; 
Note: See TracChangeset for help on using the changeset viewer.