From a74fa6ed733c3e7cdbb80e15b44850bf3cebb6af Mon Sep 17 00:00:00 2001 From: Mohammed Shekha Date: Wed, 22 May 2013 18:23:50 +0530 Subject: [PATCH] [FIX]Fixed the issue of timezone on total attendance on My current timesheet view. bzr revid: msh@openerp.com-20130522125350-b6yj2mpqosfwajkc --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 768d85860df..4334c73aace 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -464,7 +464,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv): THEN (SUM(total_attendance) + CASE WHEN current_date <> name THEN 1440 - ELSE (EXTRACT(hour FROM current_time) * 60) + EXTRACT(minute FROM current_time) + ELSE (EXTRACT(hour FROM current_time AT TIME ZONE 'UTC') * 60) + EXTRACT(minute FROM current_time AT TIME ZONE 'UTC') END ) ELSE SUM(total_attendance)