[FIX] FormatLang : Dates if specified into String,will be formatted into language-specific format

lp bug: https://launchpad.net/bugs/497423 fixed

bzr revid: jvo@tinyerp.com-20100106093711-tu7fg6lf4uzbw8sr
This commit is contained in:
Jay (Open ERP) 2010-01-06 15:07:11 +05:30
parent f5ec8210a5
commit e389b5d893
1 changed files with 4 additions and 4 deletions

View File

@ -256,10 +256,10 @@ class rml_parse(object):
parse_format = DHM_FORMAT
# filtering time.strftime('%Y-%m-%d')
if type(value) == type(''):
parse_format = DHM_FORMAT
if (not date_time):
return str(value)
# if type(value) == type(''):
# parse_format = DHM_FORMAT
# if (not date_time):
# return str(value)
if not isinstance(value, time.struct_time):
try: