2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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());
}
}