[FIX] project_timesheet: date of created analytic line not in user tz
authorDenis Ledoux <dle@odoo.com>
Tue, 25 Nov 2014 11:33:28 +0000 (12:33 +0100)
committerDenis Ledoux <dle@odoo.com>
Tue, 25 Nov 2014 11:33:28 +0000 (12:33 +0100)
commit73f7a2ba35e21d60ef98fe8ad5f2a9d735afe196
tree2436c363f680c486cbd9bcc149c65f7db24950ff
parent4ce7af357317886cfd7f08e7b1e23c6a56d9f431
[FIX] project_timesheet: date of created analytic line not in user tz

When the user was in timezone UTC + 1, and added a project.task.work which created an analytic entry line (timsheet activity), if the datetime was set to 11/25 00:00:00, the date on the analytic line was set to 11/24, because this was the truncated stored value(UTC Time), which was 11/24 23:00:00
addons/project_timesheet/project_timesheet.py