mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
[#1735] save timezone to userobj in browser as well as sending to server,
so we don't hit an infinite loop
This commit is contained in:
parent
557ce59c71
commit
6f6df94ce7
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ angular.module('userServices', []).
|
|||
// FIXME handle this somewhere else, we don't need to check every single time
|
||||
var offset = moment().zone(); // eg, 240 - this will be converted on server as -(offset/60)
|
||||
if (!user.preferences.timezoneOffset || user.preferences.timezoneOffset !== offset) {
|
||||
userServices.log({op:'set', data: {'preferences.timezoneOffset': offset}});
|
||||
userServices.set({'preferences.timezoneOffset': offset});
|
||||
}
|
||||
}
|
||||
sent.length = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue