WordPress.org

Make WordPress Core

Ticket #3896: rss.diff

File rss.diff, 627 bytes (added by mortenf, 8 years ago)
  • rss.php

    old new  
    782782 
    783783        if ( preg_match( $pat, $date_str, $match ) ) { 
    784784                list( $year, $month, $day, $hours, $minutes, $seconds) = 
    785                         array( $match[1], $match[2], $match[3], $match[4], $match[5], $match[6]); 
     785                        array( $match[1], $match[2], $match[3], $match[4], $match[5], $match[7]); 
    786786 
    787787                # calc epoch for current date assuming GMT 
    788788                $epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); 
    789789 
    790790                $offset = 0; 
    791                 if ( $match[10] == 'Z' ) { 
     791                if ( $match[11] == 'Z' ) { 
    792792                        # zulu time, aka GMT 
    793793                } 
    794794                else {