export function formatTimeInZone(unix, timeZone, opts = {}) {
    // unix is seconds → JS Date wants ms
    const date = new Date(unix * 1000);

    return date.toLocaleTimeString('en-US', {
        timeZone,
        hour: 'numeric',
        minute: '2-digit',
        hour12: true,
        ...opts
    });
}

export function formatDateInZone(unix, timeZone, opts = {}) {
    const date = new Date(unix * 1000);

    return date.toLocaleDateString('en-US', {
        timeZone,
        weekday: 'short',
        ...opts
    });
}
