'Returns the given timestamp converted to the client\'s timezone.
This method is *not* meant for use as a default initializer,
because datetime fields are automatically converted upon
display on client side. For default values :meth:`fields.datetime.now`
should be used instead.
:param datetime timestamp: naive datetime value (expressed in UTC)
to be converted to the client timezone
:rtype: datetime
:return: timestamp converted to timezone-aware datetime in context
timezone'

@staticmethod
def context_timestamp(record, timestamp):

    assert isinstance(timestamp, datetime), 'Datetime    instance    expected'
    tz_name = (record._context.get('tz') or record.env.user.tz)
    utc_timestamp = pytz.utc.localize(timestamp, is_dst=False)
    if tz_name:
        try:
            context_tz = pytz.timezone(tz_name)
            return utc_timestamp.astimezone(context_tz)
        except Exception:
            _logger.debug('failed    to    compute    context/client-specific    timestamp,    using    the    UTC    value', exc_info=True)
    return utc_timestamp
