diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-03-06 00:29:02 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-03-10 17:33:43 +0100 |
| commit | a5e32690b054d3c5d68bc33bf1bf7336d075dc2b (patch) | |
| tree | 393ce9cbee3b7586f2ac268dbdef08027e69248a /addons/web/static | |
| parent | 6758b4cfc5ab5a9bf54c30aa14ed2dfd2fbf534d (diff) | |
[FIX] tests: UTC used in test when it should not
The test for account followup use UTC time, but the default `date_maturity`
and `date_due` of an account invoice come from fields.Date.context_today`.
One failing test for project_timesheet also used `today` instead of
`context_today`.
So depending on the test user timezone, an error of one day (if UTC time
and user time are on different day) occured which failed the tests.
For example:
* user has GMT+1 timezone, test fails 0:00am–1:00am (11:00pm-0:00am in UTC)
* user has GMT+3 timezone, test fails 0:00am–3:00am (9:00pm-0:00am in UTC)
This fix removes UTC use in the tests.
Diffstat (limited to 'addons/web/static')
0 files changed, 0 insertions, 0 deletions
