id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 883,Problems with international date handling,Petar Marić ,Adrian Holovaty,"The code: {{{ {% load i18n %} {% blocktrans with object.pub_date|date:_(""DATETIME_FORMAT"") as date %}Published on {{ date }}{% endblocktrans %} }}} Spits out: {{{ AttributeError at /category/xml/ 'str' object has no attribute 'day' Request Method: GET Request URL: http://localhost/category/xml/ Exception Type: AttributeError Exception Value: 'str' object has no attribute 'day' Exception Location: C:\Dev\Python24\lib\site-packages\django\utils\dateformat.py in d, line 114 }}} Trace snip: {{{ ... C:\Dev\Python24\lib\site-packages\django\utils\dateformat.py in d 107. self.data = dt 108. self.timezone = getattr(dt, 'tzinfo', None) 109. if hasattr(self.data, 'hour') and not self.timezone: 110. self.timezone = LocalTimezone(dt) 111. 112. def d(self): 113. ""Day of the month, 2 digits with leading zeros; i.e. '01' to '31'"" 114. return '%02d' % self.data.day #Here we get the error 115. 116. def D(self): 117. ""Day of the week, textual, 3 letters; e.g. 'Fri'"" 118. return WEEKDAYS[self.data.weekday()][0:3] 119. 120. def F(self): }}} I was able to reproduce the error with '''LANGUAGE_CODE''' set to 'sr', 'en' and 'de'.",defect,closed,Template system,dev,major,duplicate,translation date time i18n,,Unreviewed,0,0,0,0,0,0