#import time #from xml.sax.saxutils import escape #set quot={'"': '"'} Content-type: text/xml; charset=utf-8 #if $parent $channel.title: $parent.title #else $channel.title #end if #set created=$time.strftime("%a, %d %b %Y %H:%M:%S GMT", $time.gmtime()) $created #for $item in $Items #set $gmtime=$time.gmtime($time.mktime($item.mtime)) #set created=$time.strftime("%a, %d %b %Y %H:%M:%S GMT", $gmtime) #end for