From 48668137260b06b3e5846d6550db9580dce6cc91 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Fri, 5 Feb 2010 18:01:36 +0530 Subject: [PATCH] [FIX] printscreen : Invalid datetime format used to disply date in printscreen bzr revid: hmo@tinyerp.com-20100205123136-xbfdxrua25sezb6a --- bin/report/printscreen/ps_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/report/printscreen/ps_list.py b/bin/report/printscreen/ps_list.py index df8c496c6f6..78729a571d5 100644 --- a/bin/report/printscreen/ps_list.py +++ b/bin/report/printscreen/ps_list.py @@ -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