aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operations')
-rw-r--r--bug/operations/add_comment.go4
-rw-r--r--bug/operations/create.go4
2 files changed, 4 insertions, 4 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(),
}
}
diff --git a/bug/operations/create.go b/bug/operations/create.go
index 81fc58f1..f4ca11ad 100644
--- a/bug/operations/create.go
+++ b/bug/operations/create.go
@@ -15,7 +15,7 @@ type CreateOperation struct {
Title string
Message string
Author bug.Person
- Time time.Time
+ Time int64
}
func NewCreateOp(author bug.Person, title, message string) CreateOperation {
@@ -24,7 +24,7 @@ func NewCreateOp(author bug.Person, title, message string) CreateOperation {
Title: title,
Message: message,
Author: author,
- Time: time.Now(),
+ Time: time.Now().Unix(),
}
}