aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/add_comment.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-14 23:02:49 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-14 23:02:49 +0200
commit13d7b3480b0f555294edf2c52a886321bbd9f5e8 (patch)
tree4f20f658d85327acabe2cc052db5872e7eba63f3 /bug/operations/add_comment.go
parentfd4fa96c19dbb9b140726c48ff66d1f79646019a (diff)
downloadgit-bug-13d7b3480b0f555294edf2c52a886321bbd9f5e8.tar.gz
use a Unix timestamp (int64) for the time instead of golang's Time that cause trouble for serialisation
Diffstat (limited to 'bug/operations/add_comment.go')
-rw-r--r--bug/operations/add_comment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/operations/add_comment.go b/bug/operations/add_comment.go
index 1f9e3410..ce33522c 100644
--- a/bug/operations/add_comment.go
+++ b/bug/operations/add_comment.go
@@ -11,7 +11,7 @@ type AddCommentOperation struct {
bug.OpBase
Message string
Author bug.Person
- Time time.Time
+ Time int64
}
func NewAddCommentOp(author bug.Person, message string) AddCommentOperation {
@@ -19,7 +19,7 @@ func NewAddCommentOp(author bug.Person, message string) AddCommentOperation {
OpBase: bug.OpBase{OperationType: bug.ADD_COMMENT},
Message: message,
Author: author,
- Time: time.Now(),
+ Time: time.Now().Unix(),
}
}