[MERGE] Fix bug 932170 - formatLang() should render using context timezone
[odoo/odoo.git] / openerp / report / report_sxw.py
index 106144f..4a713ac 100644 (file)
@@ -298,6 +298,8 @@ class rml_parse(object):
                 date_format = date_format + " " + self.lang_dict['time_format']
                 parse_format = DEFAULT_SERVER_DATETIME_FORMAT
             if isinstance(value, basestring):
+                # FIXME: the trimming is probably unreliable if format includes day/month names
+                #        and those would need to be translated anyway. 
                 date = datetime.strptime(value[:get_date_length(parse_format)], parse_format)
             elif isinstance(value, time.struct_time):
                 date = datetime(*value[:6])