[campsite-dev] contd. RFC-822 date-time format in campsite
  • hi folks,

    in php it would be:

    print date("r");
    // RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
    (added in PHP 4.0.4)

    but that doesn't do the trick in campsite...

    ---

    i need to write a date in the RFC-822 format to validate for an RSS
    feed (link see below) but can not figure out in the manual how i
    would assemble the matching string to do so. any ideas?

    http://feedvalidator.org/docs/error/InvalidRFC2822Date.html

    Micz Flor - micz@mi.cz

    content and media development http://mi.cz
    --------------------------------------------------------
    http://www.campware.org -- http://www.suemi.de
    http://www.redaktionundalltag.de
    --------------------------------------------------------
  • 3 Comments sorted by
  • Paul should have the answer for you, once he wakes up in Toronto.



    Micz Flor
    > cc:
    Sent by: Subject: [campsite-dev] contd. RFC-822 date-time format in campsite
    micz.flor@web.de


    17/10/2006 02:57
    PM
    Please respond to
    campsite-dev






    hi folks,

    in php it would be:

    print date("r");
    // RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
    (added in PHP 4.0.4)

    but that doesn't do the trick in campsite...

    ---

    i need to write a date in the RFC-822 format to validate for an RSS
    feed (link see below) but can not figure out in the manual how i
    would assemble the matching string to do so. any ideas?

    http://feedvalidator.org/docs/error/InvalidRFC2822Date.html

    Micz Flor - micz@mi.cz

    content and media development http://mi.cz
    --------------------------------------------------------
    http://www.campware.org -- http://www.suemi.de
    http://www.redaktionundalltag.de
    --------------------------------------------------------





    Invest in Press Freedom: Visit http://www.mdlf.org/support-free-press
  • Hi Micz,

    You can't print the date in RFC-822 format using the template language, it will be possible once
    we rewrite it in PHP. Regarding "print date('r');", what do you mean it "doesn't do the trick"? Smile

    I put this PHP statement in a Campsite template (PHP wrapper enabled) and it worked ok for me.

    Mugur

    --- Micz Flor wrote:
    > hi folks,
    >
    > in php it would be:
    >
    > print date("r");
    > // RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
    > (added in PHP 4.0.4)
    >
    > but that doesn't do the trick in campsite...
    >
    > ---
    >
    > i need to write a date in the RFC-822 format to validate for an RSS
    > feed (link see below) but can not figure out in the manual how i
    > would assemble the matching string to do so. any ideas?
    >
    > http://feedvalidator.org/docs/error/InvalidRFC2822Date.html
    >
    > Micz Flor - micz@mi.cz
    >
    > content and media development http://mi.cz
    > --------------------------------------------------------
    > http://www.campware.org -- http://www.suemi.de
    > http://www.redaktionundalltag.de
    > --------------------------------------------------------
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • At 16:02 17.10.2006, you wrote:
    >Hi Micz,
    >
    >You can't print the date in RFC-822 format using the template
    >language, it will be possible once
    >we rewrite it in PHP. Regarding "print date('r');", what do you mean
    >it "doesn't do the trick"? Smile

    i meant that some of the PHP lingo is in the campsite lingo with %W
    for example. and i was hoping that %r would work, too Smile

    >I put this PHP statement in a Campsite template (PHP wrapper
    >enabled) and it worked ok for me.

    ok, i will do that. thanks, micz


    >Mugur
    >
    >--- Micz Flor wrote:
    > > hi folks,
    > >
    > > in php it would be:
    > >
    > > print date("r");
    > > // RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200"
    > > (added in PHP 4.0.4)
    > >
    > > but that doesn't do the trick in campsite...
    > >
    > > ---
    > >
    > > i need to write a date in the RFC-822 format to validate for an RSS
    > > feed (link see below) but can not figure out in the manual how i
    > > would assemble the matching string to do so. any ideas?
    > >
    > > http://feedvalidator.org/docs/error/InvalidRFC2822Date.html
    > >
    > > Micz Flor - micz@mi.cz
    > >
    > > content and media development http://mi.cz
    > > --------------------------------------------------------
    > > http://www.campware.org -- http://www.suemi.de
    > > http://www.redaktionundalltag.de
    > > --------------------------------------------------------
    > >
    > >
    >
    >
    >__________________________________________________
    >Do You Yahoo!?
    >Tired of spam? Yahoo! Mail has the best spam protection around
    >http://mail.yahoo.com


    Micz Flor - micz@mi.cz

    content and media development http://mi.cz
    --------------------------------------------------------
    http://www.campware.org -- http://www.suemi.de
    http://www.redaktionundalltag.de
    --------------------------------------------------------