

def __init__(self, obj):
    self.data = obj
    self.timezone = None
    if isinstance(obj, datetime.datetime):
        if is_naive(obj):
            self.timezone = get_default_timezone()
        else:
            self.timezone = obj.tzinfo

dataset/ETHPy150Open django/django/django/utils/dateformat.py TimeFormat.__init__/original