[FIX]pms: property date timezone without user

This commit is contained in:
Darío Lodeiros
2021-10-10 10:42:18 +02:00
parent 25e871272c
commit 61a6f3a42a

View File

@@ -395,6 +395,7 @@ class PmsProperty(models.Model):
def date_property_timezone(self, dt):
self.ensure_one()
if self.env.user:
tz_property = self.tz
dt = pytz.timezone(tz_property).localize(dt)
dt = dt.replace(tzinfo=None)