Victoria's Neofeed
  • 2020-10-12 09:49:00 +0000 UTC
    Victoria Drake

    Victoria Drake

    Oct 12, 2020

    Chop off the end of the string to make Python’s datetime.fromisoformat() accept datetime strings that end in “Z”:

    datetime_obj = datetime.fromisoformat(input_time_str_var[:-1])

    Background discussion and why this isn’t a thing:

    • discuss.python.org
    • bugs.python.org
    2020-10-12 09:49:00 +0000 UTC 1400 days ago
    webmention this