FIX: resets timezone default after callback (#6675)
This commit is contained in:
parent
c92c56d986
commit
ac556298ca
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue