Q:

OpenERP logs are in UTC -- how to get them in the same timezone as the server?

My OpenERP logs are showing timestamps in the UTC timezone, even though the actual server is in the America/Los_Angeles timezone.  This makes comparing the OpenERP logs against any of the other logs on the server a pain.
How can I get the OpenERP logs to be in the correct timezone?

A:

This is a side effect of the decision to force the OpenERP server into the UTC timezone.  There is a bug report with a patch against the 7.0 sources that will get the logs back into the proper timezone.
For the curious, the heart of the fix is to replace logging.Formatter.converter with a function smart enough to adjust back to the local timezone:
def adjust_logging_timezone():
    logger_tz = pytz.timezone(config['timezone'] or detect_server_timezone())
    if logger_tz.zone != 'UTC':
        def converter(secs=None):
            dt = datetime(*time.localtime(secs)[:6])
            dt = UTC.localize(dt).astimezone(logger_tz)
            return dt.timetuple()
        logging.Formatter.converter = staticmethod(converter)

