Fix date mocking

Close #9599

It's an interesting bug, the time we store in the snapshot is in the summertime when you run it in wintertime, it fails.
This commit is contained in:
Wei Zhu 2018-03-10 04:17:07 -05:00
parent 30fe88d4bd
commit c5fc656ec8

View File

@ -87,7 +87,7 @@ const App = () => (
describe('Locale Provider', () => {
beforeAll(() => {
MockDate.set(moment('2017-09-18T03:30:07.795Z').valueOf() + (new Date().getTimezoneOffset() * 60 * 1000));
MockDate.set(moment('2017-09-18T03:30:07.795'));
});
afterAll(() => {