you don't need to use str(...) here since isoformat() already returns a string