Commit 0e480b39 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with date format in multiple parameters.

parent e325c05c
......@@ -233,16 +233,16 @@ class JFlowServer (object):
"name": param.name + JFlowServer.MULTIPLE_TYPE_SPLITER + sub_param.flag,
"display_name": sub_param.display_name,
"group": param.group})
if hash_param["type"] == "date":
hash_param["format"] = self.jflow_config_reader.get_date_format()
if hash_param["format"] == '%d/%m/%Y':
hash_param["format"] = 'dd/mm/yyyy'
elif hash_param["format"] == '%d/%m/%y':
hash_param["format"] = 'dd/mm/yy'
elif hash_param["format"] == '%Y/%m/%d':
hash_param["format"] = 'yyyy/mm/dd'
elif hash_param["format"] == '%y/%m/%d':
hash_param["format"] = 'yy/mm/dd'
if hash_param["sub_parameters"][-1]["type"] == "date":
hash_param["sub_parameters"][-1]["format"] = self.jflow_config_reader.get_date_format()
if hash_param["sub_parameters"][-1]["format"] == '%d/%m/%Y':
hash_param["sub_parameters"][-1]["format"] = 'dd/mm/yyyy'
elif hash_param["sub_parameters"][-1]["format"] == '%d/%m/%y':
hash_param["sub_parameters"][-1]["format"] = 'dd/mm/yy'
elif hash_param["sub_parameters"][-1]["format"] == '%Y/%m/%d':
hash_param["sub_parameters"][-1]["format"] = 'yyyy/mm/dd'
elif hash_param["sub_parameters"][-1]["format"] == '%y/%m/%d':
hash_param["sub_parameters"][-1]["format"] = 'yy/mm/dd'
parameters.append(hash_param)
if parameters_per_groups.has_key(param.group):
parameters_per_groups[param.group].append(hash_param)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment