Changeset 108

Show
Ignore:
Timestamp:
04/25/08 22:09:50 (7 months ago)
Author:
pragma
Message:
  • Patch for RFC 822 Compliance - should make dates more international friendly and fix RSS output
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tracforums/orm.py

    r107 r108  
    11import os 
    22import exceptions 
     3from time import strftime, gmtime, time 
    34from inspect import isfunction 
    45from trac.mimeview import * 
     
    163164    @staticmethod 
    164165    def datetime(formatContext,value): 
    165         return formatContext.epochToDateTime(value
     166        return strftime("%a, %d %b %Y %H:%M:%S", gmtime(value)
    166167         
    167168    @staticmethod 
  • trunk/tracforums/templates/tracforums/main/recent_rss.cs

    r107 r108  
    1919            <item> 
    2020                <category domain="<?cs var:base_host ?><?cs var:trac.href.forums?>">Topic</category> 
    21                 <!-- TODO: pubdate still not RFC 822 compliant --> 
    2221                <pubDate><?cs var:topic.recentpost.modifiedhtml?></pubDate> 
    2322                <title><?cs var:topic.subject?></title>