summaryrefslogtreecommitdiffstats
path: root/model/user.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-03-29 14:58:18 -0400
committerJoram Wilander <jwawilander@gmail.com>2018-03-29 14:58:18 -0400
commit0affad9c247303d2e6c23bf45e3b5a33332f0aee (patch)
treeeee9a678b88fc288cb0689b540252099180f6cc1 /model/user.go
parent014a3b6a60610ba592c5843080686f4481553136 (diff)
downloadchat-0affad9c247303d2e6c23bf45e3b5a33332f0aee.tar.gz
chat-0affad9c247303d2e6c23bf45e3b5a33332f0aee.tar.bz2
chat-0affad9c247303d2e6c23bf45e3b5a33332f0aee.zip
fix user timezone initialization (#8547)
On PreSave, need to ensure TimeZone isn't left as NULL.
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/user.go b/model/user.go
index c3a6ec04a..066ea5fd2 100644
--- a/model/user.go
+++ b/model/user.go
@@ -211,7 +211,7 @@ func (u *User) PreSave() {
}
if u.Timezone == nil {
- u.Props = make(map[string]string)
+ u.Timezone = make(map[string]string)
}
if len(u.Password) > 0 {