diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-06-22 11:15:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 11:15:19 +0200 |
commit | d9390244afe90ed318ac8c263c19328f16dc2562 (patch) | |
tree | 82e834f259655acec6842b7adc19dff436f8a33d /cmd/mattermost/commands/sampledata.go | |
parent | 8526739066ccb00ccd24b74650a7d7b284442985 (diff) | |
download | chat-d9390244afe90ed318ac8c263c19328f16dc2562.tar.gz chat-d9390244afe90ed318ac8c263c19328f16dc2562.tar.bz2 chat-d9390244afe90ed318ac8c263c19328f16dc2562.zip |
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
Diffstat (limited to 'cmd/mattermost/commands/sampledata.go')
-rw-r--r-- | cmd/mattermost/commands/sampledata.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |