summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-03-06 00:29:02 +0100
committerChristophe Simonis <chs@odoo.com>2015-03-10 17:33:43 +0100
commita5e32690b054d3c5d68bc33bf1bf7336d075dc2b (patch)
tree393ce9cbee3b7586f2ac268dbdef08027e69248a /addons/web/static/src
parent6758b4cfc5ab5a9bf54c30aa14ed2dfd2fbf534d (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/src')
0 files changed, 0 insertions, 0 deletions