(date)
return date
Make sure the locale setting do not interfere with the time format.
Make sure the locale setting do not interfere with the time format.
Make sure the locale setting do not interfere with the time format .
def formatRFC2822(date):
    '''Make sure the locale setting do not interfere with the time format.
    '''
    old = locale.setlocale(locale.LC_ALL)
    locale.setlocale(locale.LC_ALL, 'C')
    date = date.strftime('%a, %d %b %Y %H:%M:%S %z')
    locale.setlocale(locale.LC_ALL, old)
    return date
def formatRFC2822 ( date ) : old = locale . setlocale ( locale . LC_ALL ) locale . setlocale ( locale . LC_ALL , 'C' ) date = date . strftime ( '%a, %d %b %Y %H:%M:%S %z' ) locale . setlocale ( locale . LC_ALL , old ) return date