I am using the Assistance application in Odoo v15, when i create a record with the method:
model = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(rute)) model.execute_kw(db, uid, api, 'hr.attendance', 'create', [{'id_employee':'Josh Allen', 'check_in':datetime.now().strftime("%Y-%m-%d %H:%M:%S")}])
the registry is created but the time is wrong
example:
local time is "2023-02-07 10:27:41"
time recorded in odoo "2023-02-07 03:27:41"
Any solution besides reducing the time with code 7 hours?
Any help will be much appreciated.