ZERO = timedelta(0)


class FixedOffset(tzinfo):
    """Fixed offset in minutes east from UTC."""

def __init__(self, offset, name):
    self.__offset = timedelta(minutes=offset)
self.__name = name

def utcoffset(self, dt):
    return self.__offset

def tzname(self, dt):
    return self.__name

def dst(self, dt):
    return ZERO
How to set UTC offset for datetime?