forked from MirrorHub/mautrix-whatsapp
provisioning: add logging for timezone
Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
parent
e1b2a67f2c
commit
e1b734e52f
1 changed files with 3 additions and 0 deletions
|
@ -622,8 +622,11 @@ func (prov *ProvisioningAPI) Login(w http.ResponseWriter, r *http.Request) {
|
|||
})
|
||||
|
||||
if userTimezone := r.URL.Query().Get("tz"); userTimezone != "" {
|
||||
user.log.Debug("Setting timezone to %s", userTimezone)
|
||||
user.Timezone = userTimezone
|
||||
user.Update()
|
||||
} else {
|
||||
user.log.Debug("No timezone provided in request")
|
||||
}
|
||||
|
||||
qrChan, err := user.Login(ctx)
|
||||
|
|
Loading…
Reference in a new issue