def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def format_date(date):
            return date.replace(tzinfo=datetime.timezone.utc, microsecond=0).isoformat()