I have an onchange class written :
@api.onchange('res_users_id')
def do_stuff(self):
if self.res_users_id:
self.beschreibung = str(now) + '\n' + str(self.beschreibung)
else:
self.beschreibung = ' '
and a global variable: now = datetime.datetime.now()
I have 2 problems:
1: it is showing about 2 hours behind my current time, how do I fix that? and
2: how do I get rid of the milliseconds at the end - 10:07:15.471708?