mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
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
Block a user