diff options
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 { |