Fix: Do not ask which timezone should be chosen if there is no timezone defined in poll

This commit is contained in:
jelhan 2016-02-23 00:02:16 +01:00
parent b7b57ef051
commit 03de059fd1

View file

@ -111,7 +111,8 @@ export default Ember.Controller.extend({
* return true if current timezone differs from timezone poll got created with
*/
timezoneDiffers: function() {
return jstz.determine().name() !== this.get('model.timezone');
const modelTimezone = this.get('model.timezone');
return Ember.isPresent(modelTimezone) && jstz.determine().name() !== modelTimezone;
}.property('model.timezone'),
useLocalTimezone: function() {