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

reads isoformat

parent 5894735a
Branches
Tags
No related merge requests found
......@@ -109,7 +109,7 @@ def odsh_render_datetime(datetime_, date_format='{0.day:02d}.{0.month:02d}.{0.ye
if not datetime_:
return ''
try:
DATETIME_FORMAT = '%Y-%m-%d'
DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S'
dt = datetime.datetime.strptime(
datetime_, DATETIME_FORMAT)
return dt.strftime('%d.%m.%Y')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment