Hello,
I try to get the time in the user's time zone. Here is my code, generating an error:
user_tz = self.env.user.tz
MyDate = record.x_studio_approved_date_time_exit.user_tz
record['x_studio_time_exit'] = MyDate.strftime("%H:%M")
But it gives me an error... since the ".user_tz" is not supported.
Can you tell me how to solve this?
Thank you!