Skip to content

Commit ac68f9b

Browse files
diegorussomattip
authored andcommitted
Show full date/time in the revision admin view
When a revision is shown in the admin interface, the year of the date is not displayed. Change to isoformat to show every field of the DateTimeField. Address #23
1 parent 1eff5d1 commit ac68f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codespeed/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __str__(self):
139139
if self.date is None:
140140
date = None
141141
else:
142-
date = self.date.strftime("%b %d, %H:%M")
142+
date = self.date.isoformat(sep=" ")
143143
string = " - ".join(filter(None, (date, self.commitid, self.tag)))
144144
if self.branch.name != self.branch.project.default_branch:
145145
string += " - " + self.branch.name

0 commit comments

Comments
 (0)