Skip to content
Snippets Groups Projects
Commit f450028d authored by anonymous's avatar anonymous
Browse files

fix date format

parent a4e92074
Branches
No related tags found
No related merge requests found
......@@ -96,9 +96,9 @@ def odsh_get_spatial_text(pkg_dict):
return spatial
return None
def odsh_render_datetime(datetime_, date_format='%d.%m.%Y'):
def odsh_render_datetime(datetime_, date_format='{0.day:02d}.{0.month:02d}.{0.year:4d}'):
dt = parser.parse(datetime_)
return dt.strftime(date_format)
return date_format.format(dt)
def odsh_upload_known_formats():
value = config.get('ckanext.odsh.upload_formats', [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment