← Back to team overview

openerp-india team mailing list archive

[Bug 943091] Re: More time-zone issues

 

I cleaned up timezone handling in the 6.1 timesheets code, and I've posted a merge proposal. The 6.1 timesheets code is currently unusable because of timezone problems, so I strongly recommend these changes.
Here are all the timesheet problems I found and fixed:
- Today button goes to UTC date instead of local date.
- Sign in and Sign out buttons put attendance records on timesheet based on UTC date instead of local date.
- Total attendance calculation is broken because of timezone problems on timesheet and timesheet by day view.
- Sign in / sign out by project menu item put attendance records on timesheet based on UTC date and didn't link the hr_analytic_timesheet records to the timesheet properly.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/943091

Title:
  More time-zone issues

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  In a similar vein as https://bugs.launchpad.net/openerp-
  web/+bug/918257, hr_timesheet_sheet displays "Today" as UTC, rather
  than the local. When manually signing in or out, the attendance is
  pushed to the UTC day. This is very confusing.

  If I understand correctly, datetime is set to UTC in the server. In
  hr_timesheet_sheet_view.xml, <field name="date_current" nolabel="1"/>
  will always be UTC, which is not what I expect. This completely screws
  up the daily attendance as I sign in on one day and sign out on the
  next day.

  What would be the recommended best practice to fix this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/943091/+subscriptions