1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-11-06 09:19:31 +02:00

use milliseconds for all timestamps (server) (#1447)

This commit is contained in:
Doug Lauder
2021-10-07 07:51:01 -04:00
committed by GitHub
parent f69e9ae927
commit db8d91f889
21 changed files with 843 additions and 387 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/mattermost/focalboard/server/auth"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/utils"
mmModel "github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/plugin"
)
@@ -374,7 +375,7 @@ func (pa *PluginAdapter) BroadcastBlockChange(workspaceID string, block model.Bl
}
func (pa *PluginAdapter) BroadcastBlockDelete(workspaceID, blockID, parentID string) {
now := time.Now().Unix()
now := utils.GetMillis()
block := model.Block{}
block.ID = blockID
block.ParentID = parentID

View File

@@ -4,13 +4,13 @@ import (
"encoding/json"
"net/http"
"sync"
"time"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/mattermost/focalboard/server/auth"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/store"
"github.com/mattermost/focalboard/server/utils"
"github.com/mattermost/mattermost-server/v6/shared/mlog"
)
@@ -464,7 +464,7 @@ func (ws *Server) getListenersForWorkspace(workspaceID string) []*wsClient {
// BroadcastBlockDelete broadcasts delete messages to clients.
func (ws *Server) BroadcastBlockDelete(workspaceID, blockID, parentID string) {
now := time.Now().Unix()
now := utils.GetMillis()
block := model.Block{}
block.ID = blockID
block.ParentID = parentID