Error updating user language in DB on first time user login with Safari #9806
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
issue/stale
type/bug
Description
Can be reproduced only on Safari.
On first time user login Gitea doesn't redirect to user page and shows empty page (http://gitea-host:3000/user/login). It seems Gitea incorrectly defines user locale in Safari - "en-US-u-rg-gbzzzz" instead of "en-US".
Workaround
First time (after creating user) login with Google Chrome. On next logins with Safari Gitea will redirect to user page correctly.
Logs
❌ First time login with Safari 13.0.4 (15608.4.9.1.3):
journalctl -f -u gitea:
/var/lib/gitea/log/gitea.log:
/var/lib/pgsql/data/pg_log/postgresql-Thu.log:
✅ First time login with Google Chrome 79.0.3945.117:
journalctl -f -u gitea:
/var/lib/gitea/log/gitea.log:
The text was updated successfully, but these errors were encountered: