From 75ef910e8dbc9d556ae8591910df5be914e4125c Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Thu, 3 Mar 2011 11:20:30 +0100
Subject: [PATCH] fix time display in datetime time displaytag type

---
 cccli/tagdisplay.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cccli/tagdisplay.py b/cccli/tagdisplay.py
index 2328252..b357b84 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")
-- 
GitLab