Cleanup related to context refactor (#9988)

Этот коммит содержится в:
Christopher Speller
2018-12-17 08:51:46 -08:00
коммит произвёл GitHub
родитель 829f183bb0
Коммит 8429add371
55 изменённых файлов: 1027 добавлений и 949 удалений

Просмотреть файл

@@ -12,6 +12,7 @@ import (
"strings"
"unicode/utf8"
"github.com/mattermost/mattermost-server/services/timezones"
"golang.org/x/crypto/bcrypt"
)
@@ -230,7 +231,7 @@ func (u *User) PreSave() {
}
if u.Timezone == nil {
u.Timezone = DefaultUserTimezone()
u.Timezone = timezones.DefaultUserTimezone()
}
if len(u.Password) > 0 {