code: def restore(self, value, context=None):
          
          value = super(DatetimeWithTimezoneColumn, self).restore(value, context)
  
          if value in ('today', 'now'):
              value = datetime.date.now()
  
          if isinstance(value, datetime.datetime):
              tz = pytz.timezone(context.timezone)
  
              if tz is not None:
                  if value.tzinfo is None:
                      base_tz = pytz.timezone(orb.system.settings().server_timezone)
  
                      # the machine timezone and preferred timezone match, so create off utc time
                      if base_tz == tz:
                          value = tz.fromutc(value)
  
                      # convert the server timezone to a preferred timezone
                      else:
                          value = base_tz.fromutc(value).astimezone(tz)
                  else:
                      value = value.astimezone(tz)
              else:
                  log.warning('No local timezone defined')
  
          return value
docs: Restores the value from a table cache for usage.
  
          :param      value   | <variant>
                      context | <orb.Context> || None