diff options
author | Alex Auvolat <alex@adnab.me> | 2020-03-01 15:28:11 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-03-01 15:28:11 +0100 |
commit | 0823b72accdde4f1812a45beb061ce61e18c15b3 (patch) | |
tree | a94bc23c2e312d32564bd87baade8ccba59f15dd /connector | |
parent | b45340629957a9c22132e934d23b069f609431f3 (diff) | |
download | easybridge-0823b72accdde4f1812a45beb061ce61e18c15b3.tar.gz easybridge-0823b72accdde4f1812a45beb061ce61e18c15b3.zip |
Add timestamps to backlogged messages
Diffstat (limited to 'connector')
-rw-r--r-- | connector/mattermost/mattermost.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go index d39768e..6c0e091 100644 --- a/connector/mattermost/mattermost.go +++ b/connector/mattermost/mattermost.go @@ -454,7 +454,7 @@ func (mm *Mattermost) processBacklog(ch *model.Channel, backlog *model.PostList) post := backlog.Posts[post_id] post_time := time.Unix(post.CreateAt/1000, 0) post.Message = fmt.Sprintf("[%s] %s", - post_time.Format("2006-01-02 15:04:05 MST"), post.Message) + post_time.Format("2006-01-02 15:04 MST"), post.Message) mm.handlePost(ch.Name, post, true) } } |