

def set_localized_date(self, timezone):
    'Set the localized date (the "Date" key)'
    try:
        tz = pytz.timezone(timezone)
    except pytz.UnknownTimeZoneError:
        tz = pytz.utc
    localized_utc = pytz.utc.localize(self['Creation Date'])
    self.data['Date'] = localized_utc.astimezone(timezone)

dataset/ETHPy150Open nathangrigg/dayone_export/dayone_export/__init__.py Entry.set_localized_date/VarMisuse@67/106 `tz`->`timezone`