Skip to content

Commit be45e4b

Browse files
committed
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 a3ca362 commit be45e4b

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
@@ -144,7 +144,7 @@ def __str__(self):
144144
if self.date is None:
145145
date = None
146146
else:
147-
date = self.date.strftime("%b %d, %H:%M")
147+
date = self.date.isoformat(sep=" ")
148148
string = " - ".join(filter(None, (date, self.commitid, self.tag)))
149149
if self.branch.name != self.branch.project.default_branch:
150150
string += " - " + self.branch.name

0 commit comments

Comments
 (0)