mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: resets timezone default after callback (#6675)
This commit is contained in:
parent
c92c56d986
commit
ac556298ca
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ function freezeDateAndZone(date, zone, cb) {
|
||||||
cb();
|
cb();
|
||||||
|
|
||||||
moment.tz.guess.returns(DEFAULT_ZONE);
|
moment.tz.guess.returns(DEFAULT_ZONE);
|
||||||
|
moment.tz.setDefault(DEFAULT_ZONE);
|
||||||
sandbox.useFakeTimers(moment(DEFAULT_DATE).valueOf());
|
sandbox.useFakeTimers(moment(DEFAULT_DATE).valueOf());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue