'Return the current date as seen in the client\'s timezone in a format
fit for date fields. This method may be used to compute default
values.
:param datetime timestamp: optional datetime value to use instead of
the current date and time (must be a datetime, regular dates
can\'t be converted between timezones.)
:rtype: str'

@staticmethod
def context_today(record, timestamp=None):

    today = (timestamp or datetime.now())
    context_today = None
    tz_name = (record._context.get('tz') or record.env.user.tz)
    if tz_name:
        try:
            today_utc = pytz.timezone('UTC').localize(today, is_dst=False)
            context_today = today_utc.astimezone(pytz.timezone(tz_name))
        except Exception:
            _logger.debug('failed    to    compute    context/client-specific    today    date,    using    UTC    value    for    `today`', exc_info=True)
    return (context_today or today).strftime(DATE_FORMAT)
