Skip to content
Snippets Groups Projects
Commit 75ef910e authored by Seblu's avatar Seblu
Browse files

fix time display in datetime time displaytag type

parent 4fc65dd4
No related branches found
No related tags found
No related merge requests found
...@@ -149,15 +149,15 @@ class TagDisplay(object): ...@@ -149,15 +149,15 @@ class TagDisplay(object):
def type_date(self, value): def type_date(self, value):
'''date type''' '''date type'''
d = datetime.date.fromtimestamp(float(value)) d = datetime.datetime.fromtimestamp(float(value))
return d.strftime("%d/%m/%Y") return d.strftime("%d/%m/%Y")
def type_time(self, value): def type_time(self, value):
'''date type''' '''date type'''
d = datetime.date.fromtimestamp(float(value)) d = datetime.datetime.fromtimestamp(float(value))
return d.strftime("%H:%M:%S") return d.strftime("%H:%M:%S")
def type_datetime(self, value): def type_datetime(self, value):
'''date type''' '''date type'''
d = datetime.date.fromtimestamp(float(value)) d = datetime.datetime.fromtimestamp(float(value))
return d.strftime("%d/%m/%Y %H:%M:%S") return d.strftime("%d/%m/%Y %H:%M:%S")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment