[#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:
@@ -73,7 +73,7 @@ angular.module('userServices', []).
|
|||||||
// FIXME handle this somewhere else, we don't need to check every single time
|
// 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)
|
var offset = moment().zone(); // eg, 240 - this will be converted on server as -(offset/60)
|
||||||
if (!user.preferences.timezoneOffset || user.preferences.timezoneOffset !== offset) {
|
if (!user.preferences.timezoneOffset || user.preferences.timezoneOffset !== offset) {
|
||||||
userServices.log({op:'set', data: {'preferences.timezoneOffset': offset}});
|
userServices.set({'preferences.timezoneOffset': offset});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sent.length = 0;
|
sent.length = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user