from datetime import timezone, datetime
import os
from typing import Any, Optional


def eel_fail(message: str) -> dict[str, Any]:
    return {"success": False, "message": message}


def eel_success(result: Any = None) -> dict[str, Any]:
    return {"success": True, "result": result}


def utc_to_str(utc_dt: Optional[datetime]) -> str:
    if not utc_dt:
        return ""
    local = convert_utc_to_local(utc_dt)
    if os.name == "nt":
        return local.strftime("%b %#d, %Y %#I:%M %p")
    return local.strftime("%b %-d, %Y %-I:%M %p")


def convert_utc_to_local(utc_dt: datetime) -> datetime:
    return utc_dt.replace(tzinfo=timezone.utc).astimezone(None)

2878989ce86cbc67766394abef286a8399f6428c
<mask token>

<mask token>


def eel_fail(message: str) ->dict[str, Any]:
    return {'success': False, 'message': message}


<mask token>


def utc_to_str(utc_dt: Optional[datetime]) ->str:
    if not utc_dt:
        return ''
    local = convert_utc_to_local(utc_dt)
    if os.name == 'nt':
        return local.strftime('%b %#d, %Y %#I:%M %p')
    return local.strftime('%b %-d, %Y %-I:%M %p')


<mask token>

<mask token>


def eel_fail(message: str) ->dict[str, Any]:
    return {'success': False, 'message': message}


def eel_success(result: Any=None) ->dict[str, Any]:
    return {'success': True, 'result': result}


def utc_to_str(utc_dt: Optional[datetime]) ->str:
    if not utc_dt:
        return ''
    local = convert_utc_to_local(utc_dt)
    if os.name == 'nt':
        return local.strftime('%b %#d, %Y %#I:%M %p')
    return local.strftime('%b %-d, %Y %-I:%M %p')


<mask token>

from datetime import timezone, datetime
import os
from typing import Any, Optional


def eel_fail(message: str) ->dict[str, Any]:
    return {'success': False, 'message': message}


def eel_success(result: Any=None) ->dict[str, Any]:
    return {'success': True, 'result': result}


def utc_to_str(utc_dt: Optional[datetime]) ->str:
    if not utc_dt:
        return ''
    local = convert_utc_to_local(utc_dt)
    if os.name == 'nt':
        return local.strftime('%b %#d, %Y %#I:%M %p')
    return local.strftime('%b %-d, %Y %-I:%M %p')


def convert_utc_to_local(utc_dt: datetime) ->datetime:
    return utc_dt.replace(tzinfo=timezone.utc).astimezone(None)

from datetime import timezone, datetime
import os
from typing import Any, Optional


def eel_fail(message: str) -> dict[str, Any]:
    return {"success": False, "message": message}


def eel_success(result: Any = None) -> dict[str, Any]:
    return {"success": True, "result": result}


def utc_to_str(utc_dt: Optional[datetime]) -> str:
    if not utc_dt:
        return ""
    local = convert_utc_to_local(utc_dt)
    if os.name == "nt":
        return local.strftime("%b %#d, %Y %#I:%M %p")
    return local.strftime("%b %-d, %Y %-I:%M %p")


def convert_utc_to_local(utc_dt: datetime) -> datetime:
    return utc_dt.replace(tzinfo=timezone.utc).astimezone(None)
