From 15105b243823c4c234772b1e2d81f413c4dc6017 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 19 Mar 2009 09:20:25 +0900 Subject: [PATCH] display exact date for created and modified --- ankiqt/ui/cardlist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index a92779ec5..ee098d073 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -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(