[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:
parent
f5ec8210a5
commit
e389b5d893
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue