FIX: resets timezone default after callback (#6675)

This commit is contained in:
Joffrey JAFFEUX 2018-11-27 09:56:31 +01:00 committed by GitHub
parent c92c56d986
commit ac556298ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ function freezeDateAndZone(date, zone, cb) {
cb();
moment.tz.guess.returns(DEFAULT_ZONE);
moment.tz.setDefault(DEFAULT_ZONE);
sandbox.useFakeTimers(moment(DEFAULT_DATE).valueOf());
}
}