Fix: Do not ask which timezone should be chosen if there is no timezone defined in poll
This commit is contained in:
parent
b7b57ef051
commit
03de059fd1
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue