mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:31:13 +08:00
FIX: resets timezone default after callback (#6675)
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user