diff --git a/cccli/tagdisplay.py b/cccli/tagdisplay.py index 232825202935ed683bf9af9f332688374f90b3cf..b357b8429ec6f95ae63f5b36ca03a21d6322b1d0 100644 --- a/cccli/tagdisplay.py +++ b/cccli/tagdisplay.py @@ -149,15 +149,15 @@ class TagDisplay(object): def type_date(self, value): '''date type''' - d = datetime.date.fromtimestamp(float(value)) + d = datetime.datetime.fromtimestamp(float(value)) return d.strftime("%d/%m/%Y") def type_time(self, value): '''date type''' - d = datetime.date.fromtimestamp(float(value)) + d = datetime.datetime.fromtimestamp(float(value)) return d.strftime("%H:%M:%S") def type_datetime(self, value): '''date type''' - d = datetime.date.fromtimestamp(float(value)) + d = datetime.datetime.fromtimestamp(float(value)) return d.strftime("%d/%m/%Y %H:%M:%S")