WordPress.org

Support

Support » Plugins and Hacks » Date-related Error from feed

Date-related Error from feed

Viewing 2 replies - 1 through 2 (of 2 total)
  • And here is the format in the xml

    <pubDate>Fri, 19 Apr 2013 10:20:56 +0300</pubDate>

    I tried fixing the error by changing the code into

    case "publishdate":
    		$pub_date = get_post_meta( get_the_ID(), 'wprss_item_date', true );
    		if(is_string($pub_date)){
    			$pub_date = (int) $pub_date;
    		}
                    $publishdate = date( 'Y-m-d H:i:s', $pub_date) ;
                    echo $publishdate;
                    break;

    However while there is no error anymore, the echoed date is always 1970-01-01 00:00:00 which probably due to the unexpected format of the rss date.

    Plugin Author Jean Galea
    Participant

    @jeangalea

    Hmm I have no quick fix, will have to look into it more closely.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date-related Error from feed’ is closed to new replies.