discourse/test/javascripts/controllers
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
..
avatar-selector-test.js.es6 REFACTOR: new 'show-avatar-select' app event to trigger the avatar selector modal 2018-07-25 12:38:15 +02:00
bookmark-test.js.es6 FIX: Improve user timezone saving (#9230) 2020-03-24 11:39:09 +10:00
create-account-test.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
group-test.js.es6
history-test.js.es6 DEV: Use async functions in tests (#9087) 2020-03-02 21:20:19 +01:00
preferences-account-test.js.es6 DEV: Import EmberObject rather than global variable (#8256) 2019-10-29 14:23:50 -05:00
preferences-second-factor-test.js.es6 REFACTOR: Serve auth provider information in the site serializer. 2018-08-06 09:25:48 +01:00
reorder-categories-test.js.es6 FEATURE: Make 'Reorder Categories' work with nested categories (#8578) 2019-12-19 12:27:01 +02:00
topic-test.js.es6 DEV: Import pretender instead of global server var (#8996) 2020-03-02 14:24:31 -05:00