discourse/app
Martin Brennan b8b29e79ad
FIX: Improve user timezone saving (#9230)
Based on issues identified in https://meta.discourse.org/t/improved-bookmarks-with-reminders/144542/20

* Implement the resolvedTimezone() function on the user model where we return the user's timezone if it has been set, or we guess it using moment and save it to the user using an update call if it has not yet been set. This covers the cases of users who do not log out/in often who will not get their timezone set via login. This also makes sure the guess + save is done in a non-obtrusive way not on every page -- only when it is needed.

* Before if a user's timezone was blank when they visited their profile page we were autofilling the dropdown with the guessed timezone from moment. However this was confusing as it would appear you have that timezone saved in the DB when you really didn't. Now we do not autofill the dropdown and added a button to automatically guess the current timezone to make everything more explicit.
2020-03-24 11:39:09 +10:00
..
assets FIX: Improve user timezone saving (#9230) 2020-03-24 11:39:09 +10:00
controllers FIX: Check for permalinks before showing the 404 page 2020-03-23 16:31:07 -07:00
helpers FIX: blank popular posts in summary emails due to lightbox images 2020-02-21 16:18:38 -05:00
jobs FEATURE: automatically delete replies on a topic after N days. (#9209) 2020-03-19 21:06:31 +05:30
mailers FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
models SECURITY: Respect topic permissions when loading draft metadata 2020-03-23 11:30:40 +00:00
serializers UX: display avatar flair in categories route topic list items (#9197) 2020-03-24 01:13:25 +05:30
services FIX: Backfill topic timer duration (#9249) 2020-03-23 09:38:18 +05:30
views FIX: correctly remove authentication_data cookie on oauth login flow 2020-03-21 14:34:25 -07:00