Daily updates from Odoo
Thursday, March 21, 2019
1 change
Enhancements to existing features
This update makes Odoo's web test tools use the same simulated date across more date-related functions. It improves test reliability by preventing mismatches between fake test dates and real current dates.
Original PR description
Before this commit, when we use `testUtils.patchDate`, the function `Date.now` was not using the fake date for reference. This is an issue with the lib momentjs, which instantiate the current date as follow: ``` new Date(Date.now()) ``` Because of this, we were handling patched date and unpatched moment objects. Task-ID 1902848