pubDate outputting as just numbers? Title, description, url are OK.

Discussion in 'XML & RSS' started by 138thst, Nov 23, 2009.

  1. #1
    Hello I am using pear xml parser in a smarty template.

    Here is what my code looks like
    Everything outputs great except the date. It comes out like this: 1257784355 or 1257539262. I've even tried switching from a RSS2.0 to Atom feed and updating the variables (pubDate becoming published, etc), but I get the same thing.

    If I just get the output of $item, the date is in there no probem, with all the other stuff I don't want.

    Could someone please help me out? I've been stressing about this all day. Thanks in advance!

    -138th st
     
    138thst, Nov 23, 2009 IP
  2. 138thst

    138thst Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A friend sent me a fix, but I thought I would put it up here in case anyone had a similar problem.

    used php date to format it and it works

     
    138thst, Nov 23, 2009 IP