diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-25 17:56:58 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-25 17:56:58 +0200 |
commit | 40c6e64e4badfd543dc98237e1aeb3d8958cfe90 (patch) | |
tree | 03a992d71a1bfa3f069a5ef179649c0cf8479764 /bug/operation.go | |
parent | 5d7c3a76af85a857a6bb0bff5bac5282c0a9908f (diff) | |
download | git-bug-40c6e64e4badfd543dc98237e1aeb3d8958cfe90.tar.gz |
cache: add raw edit functions to allow setting up the author, the timestamp and the metadatas
Diffstat (limited to 'bug/operation.go')
-rw-r--r-- | bug/operation.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/operation.go b/bug/operation.go index c57d46d3..a408e167 100644 --- a/bug/operation.go +++ b/bug/operation.go @@ -51,11 +51,11 @@ type OpBase struct { } // NewOpBase is the constructor for an OpBase -func NewOpBase(opType OperationType, author Person) *OpBase { +func NewOpBase(opType OperationType, author Person, unixTime int64) *OpBase { return &OpBase{ OperationType: opType, Author: author, - UnixTime: time.Now().Unix(), + UnixTime: unixTime, } } |