[Zope] A: Howto add Last-modified to the header?

Christian Leutloff leutloff@sundancer.oche.de
15 May 2000 20:44:22 +0200


Hi,

I wanted to add a Last-modified line to the header.

Itamar Shtull-Trauring <itamar@maxnm.com> writes:

> > >The following line isnīt working
> > ><dtml-call "RESPONSE.setHeader('Last-Modified', '<dtml-var bobobase_modification_time>')">

> Try this:
> 
> <dtml-call "RESPONSE.setHeader('Last-Modified',
> bobobase_modification_time().toZone('GMT').rfc822())">

Yes, that's the right solution. It even works with a german locale!

Thanks
     Christian

-- 
Dipl.-Ing. Christian Leutloff, Aachen, Germany  christian@leutloff.de
   http://www.oche.de/~leutloff/                leutloff@debian.org

            Debian GNU/Linux - http://www.de.debian.org/