Merge pull request #3962 from expsa/you_dev_odex25_mobile

FIx bug
This commit is contained in:
kchyounes19 2025-07-20 09:08:02 +01:00 committed by GitHub
commit 79e987f2b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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