From d9390244afe90ed318ac8c263c19328f16dc2562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 22 Jun 2018 11:15:19 +0200 Subject: MM-8810: Add CSV Compliance export (#8966) * MM-8810: Add CSV Compliance export * Only allowing to schedule actiances export throught the cli * De-duplicating some code * Fixes on texts * Fixes on translations --- cmd/mattermost/commands/sampledata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/mattermost/commands/sampledata.go') diff --git a/cmd/mattermost/commands/sampledata.go b/cmd/mattermost/commands/sampledata.go index 0051679eb..0983ab0df 100644 --- a/cmd/mattermost/commands/sampledata.go +++ b/cmd/mattermost/commands/sampledata.go @@ -56,7 +56,7 @@ func sliceIncludes(vs []string, t string) bool { func randomPastTime(seconds int) int64 { now := time.Now() today := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.FixedZone("UTC", 0)) - return today.Unix() - int64(rand.Intn(seconds*1000)) + return (today.Unix() * 1000) - int64(rand.Intn(seconds*1000)) } func randomEmoji() string { -- cgit v1.2.3-1-g7c22