Commit 2f2f2594 authored by Dorian's avatar Dorian
Browse files

dates in european format

parent 78ca90e5
......@@ -87,8 +87,8 @@ def get_history(conn, potelet):
def format_date(date_str):
date = {}
date["day"] = date_str.split("T")[0]
date["time"] = date_str.split("T")[1]
date["day"], date["time"] = date_str.split("T")
date["day"] = ".".join(date["day"].split("-")[::-1])
date["time"] = ":".join(date["time"].split(":")[:2])
return date
......
This diff is collapsed.
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