diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-14 23:02:49 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-14 23:02:49 +0200 |
commit | 13d7b3480b0f555294edf2c52a886321bbd9f5e8 (patch) | |
tree | 4f20f658d85327acabe2cc052db5872e7eba63f3 /bug/operations/create.go | |
parent | fd4fa96c19dbb9b140726c48ff66d1f79646019a (diff) | |
download | git-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/create.go')
-rw-r--r-- | bug/operations/create.go | 4 |
1 files changed, 2 insertions, 2 deletions
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(), } } |