/**
 * Get a date string in YYYY-MM-DD format using LOCAL timezone.
 * This prevents timezone issues where evening times become the next day in UTC.
 */
export function getLocalDateString(date: Date = new Date()): string {
    const year = date.getFullYear();
    const month = String(date.getMonth() + 1).padStart(2, '0');
    const day = String(date.getDate()).padStart(2, '0');
    return `${year}-${month}-${day}`;
}

/**
 * Get today's date string in YYYY-MM-DD format using LOCAL timezone.
 */
export function getTodayString(): string {
    return getLocalDateString(new Date());
}
