[FIX] printscreen : Invalid datetime format used to disply date in printscreen

bzr revid: hmo@tinyerp.com-20100205123136-xbfdxrua25sezb6a
This commit is contained in:
Harry (Open ERP) 2010-02-05 18:01:36 +05:30
parent c87f45df1b
commit 4866813726
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class report_printscreen_list(report_int):
if fields[f]['type'] == 'date' and line[f]:
format = str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'))
d1 = datetime.strptime(line[f],'%y-%m-%d')
d1 = datetime.strptime(line[f],'%Y-%m-%d')
new_d1 = d1.strftime(format)
line[f] = new_d1