mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
display exact date for created and modified
This commit is contained in:
parent
9b828d52c8
commit
15105b2438
1 changed files with 4 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue