mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update common
This commit is contained in:
@@ -79,7 +79,7 @@ class Base(models.AbstractModel):
|
||||
value = value.strftime(return_format)
|
||||
dt = datetime.strptime(value, return_format)
|
||||
user_tz = pytz.timezone(self.env.user.tz or 'Etc/GMT-8')
|
||||
_logger.warning('============= user2 tz: %s' % user_tz)
|
||||
# _logger.warning('============= user2 tz: %s' % user_tz)
|
||||
dt = dt.replace(tzinfo=pytz.timezone('UTC'))
|
||||
return dt.astimezone(user_tz).strftime(return_format)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user