aboutsummaryrefslogtreecommitdiffstats
path: root/bug/comment.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-18 00:16:06 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-18 00:16:06 +0200
commitba3281dc9918fa49f10c2a166b5b631a931d2d51 (patch)
treef6e9d17fa7828634f250c7af0674d5405ba0d224 /bug/comment.go
parent6f83d89274fc796e01149c84b91b8aa2066f0273 (diff)
downloadgit-bug-ba3281dc9918fa49f10c2a166b5b631a931d2d51.tar.gz
all operations now have an author and a timestamp
Diffstat (limited to 'bug/comment.go')
-rw-r--r--bug/comment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/comment.go b/bug/comment.go
index 8ea4154f..63147776 100644
--- a/bug/comment.go
+++ b/bug/comment.go
@@ -8,9 +8,9 @@ type Comment struct {
// Creation time of the comment.
// Should be used only for human display, never for ordering as we can't rely on it in a distributed system.
- Time int64
+ UnixTime int64
}
func (c Comment) FormatTime() string {
- return time.Unix(c.Time, 0).Format(time.RFC822)
+ return time.Unix(c.UnixTime, 0).Format(time.RFC822)
}