提交 7b1080f7 编写于 作者: M Martin Kraft

Fixes time conversion bug.

上级 a64ab16c
......@@ -13,7 +13,7 @@ import (
// check if there is any auto_response type post in channel by the user in a calender day
func (a *App) checkIfRespondedToday(createdAt int64, channelId, userId string) (bool, error) {
y, m, d := time.Unix(createdAt, 0).Date()
y, m, d := time.Unix(int64(model.GetTimeForMillis(createdAt).Second()), 0).Date()
since := model.GetMillisForTime(time.Date(y, m, d, 0, 0, 0, 0, time.UTC))
return a.Srv().Store.Post().HasAutoResponsePostByUserSince(
model.GetPostsSinceOptions{ChannelId: channelId, Time: since},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册