import pytz


def AdaptReadableDatetime(date_obj):
  """Adapts a datetime.datetime object to its ISO-8601 date/time notation."""
  try:
    date_obj = date_obj.astimezone(pytz.utc)
  except ValueError:
    pass  # naive datetime object
  return date_obj.isoformat()