provisioning: add logging for timezone

Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
Sumner Evans 2023-01-13 16:18:55 -07:00
parent e1b2a67f2c
commit e1b734e52f
No known key found for this signature in database
GPG key ID: 8904527AB50022FD

View file

@ -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)