display exact date for created and modified

This commit is contained in:
Damien Elmes 2009-03-19 09:20:25 +09:00
parent 9b828d52c8
commit 15105b2438

View file

@ -259,12 +259,12 @@ class DeckModel(QAbstractTableModel):
self.columns[-1][0] = k
def createdColumn(self, index):
return fmtTimeSpan(
time.time() - self.cards[index.row()][CARD_CREATED]) + " ago"
return time.strftime("%Y-%m-%d", time.localtime(
self.cards[index.row()][CARD_CREATED]))
def modifiedColumn(self, index):
return fmtTimeSpan(
time.time() - self.cards[index.row()][CARD_MODIFIED]) + " ago"
return time.strftime("%Y-%m-%d", time.localtime(
self.cards[index.row()][CARD_MODIFIED]))
def intervalColumn(self, index):
return fmtTimeSpan(