{"action":"opened","issue":{"url":"https://api.github.com/repos/OCA/OCB/issues/388","labels_url":"https://api.github.com/repos/OCA/OCB/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/OCA/OCB/issues/388/comments","events_url":"https://api.github.com/repos/OCA/OCB/issues/388/events","html_url":"https://github.com/OCA/OCB/issues/388","id":118301267,"number":388,"title":"[7.0][OCB Specific] account_aged_partner_balance.py","user":{"login":"gdgellatly","id":5093264,"avatar_url":"https://avatars.githubusercontent.com/u/5093264?v=3","gravatar_id":"","url":"https://api.github.com/users/gdgellatly","html_url":"https://github.com/gdgellatly","followers_url":"https://api.github.com/users/gdgellatly/followers","following_url":"https://api.github.com/users/gdgellatly/following{/other_user}","gists_url":"https://api.github.com/users/gdgellatly/gists{/gist_id}","starred_url":"https://api.github.com/users/gdgellatly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdgellatly/subscriptions","organizations_url":"https://api.github.com/users/gdgellatly/orgs","repos_url":"https://api.github.com/users/gdgellatly/repos","events_url":"https://api.github.com/users/gdgellatly/events{/privacy}","received_events_url":"https://api.github.com/users/gdgellatly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T00:32:04Z","updated_at":"2015-11-23T00:32:04Z","closed_at":null,"body":"@StefanRijnhart \r\nIn commit  https://github.com/OCA/OCB/commit/797ea419d2fde54d8532a27734b15a284c6d84ba a fix was introduced \"Aged partner balance unreconciled amount selection off by one day\".  Unfortunately the fix is not timezone aware and so I think it creates/illuminates the reverse problem of what it sought to solve. \r\n\r\nI'm not sure what the solution is here but imagine it involves changing that line to be basically recon.create_date > date_field::timestamp - user_tz difference + 1 day, but as I say I don't know.  Does that seem right, or does it need to be in the user who created the entries timezone?  Official gives me correct result, OCB has a difference between General Ledger and Aged Partner Balance report. "}}