This commit is contained in:
younes 2025-07-20 09:04:56 +01:00
parent 12873d5cb3
commit 42e95115e3
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class HrPersonalPermission(models.Model):
_logger.warning("Write inner")
user = self.employee_id.user_id
timezone = user.tz or 'GMT'
timezone = user.tz or 'UTC'
local_tz = pytz.timezone(timezone)
date_from_local = self.date_from.astimezone(local_tz) if self.date_from else None
date_to_local = self.date_to.astimezone(local_tz) if self.date_to else None