summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-03-30 23:07:00 -0300
committerLucas Perais (lpe) <lpe@odoo.com>2018-04-04 09:49:46 +0200
commit72254129dbaeae58d0a2055cba4e4a82cde495b7 (patch)
tree71d48d7746af39fc2bc6b02e53f68e4983ccae05 /addons/web/static/src/js
parent26347fc7594ff96f4e26086dab0c636338de56cc (diff)
[FIX] mail_activity: state of activity is TZ dependent
Have your user and your system in timezone Sao Paolo When it is 2200 TZ time, UTC is the day after 0100 Have a activity schedule for today Before this commit the activity was flagged as overdue. This was because we compared the date deadline of the activity (no TZ) to the date.today() in Python While date do not have TZ legitimately, the moment (and place) you create them matters Thus, we compared the date of the server (UTC -- day +1) to a date set by the user (TZ -- day -1) After this commit we make up a date according to the user's tz And the activity is not overdue, but in state 'today' as it should OPW 1827920 closes #23969
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions