Ticketfly / ember-mockdate-shim

ES6 accessible module for MockDate within your Ember application
MIT License
15 stars 7 forks source link

Support for timezoneOffset #18

Open tkraak opened 4 years ago

tkraak commented 4 years ago

Hi, is there a particular reason why ember-mockdate-shim does not support MockDate's timezoneOffset argument?

const freezeDateAt = (...args) => {
  trySet(Ember, 'run.backburner._platform.now', () => originalDate());
  set(args);
};

vs

const freezeDateAt = (...args) => {
  trySet(Ember, 'run.backburner._platform.now', () => originalDate());
  set(...args);
};

Happy to PR it in.