Ready to hunt down those pesky date / time specific bugs?
This is an ember addon that wraps https://github.com/schickling/timemachine in a way that doesn't make your app party like it's 1969.
Install ember-timemachine:
ember install ember-timemachine
Use it:
import timemachine from 'timemachine';
timemachine.config({
dateString: 'December 25, 1969 13:12:59'
});
console.log(new Date());
and stop partying when you want with:
timemachine.reset();
Me too! So, this stops the default timer from ticking... which means Backburner can get frozen in time. So, you need to set 'tick: true;' when you configure.
I'll probably add in some helpers or better docs to discuss this in the future.
git clone
this repositorynpm install
bower install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.