The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(dates): use UTC parsing and display for date-only strings (#351)
Maurice897e1bff2664
diff --git a/client/src/components/Budget/BudgetPanel.tsx b/client/src/components/Budget/BudgetPanel.tsxindex 0f447bb8c..a0cbd3d4a 100644--- a/client/src/components/Budget/BudgetPanel.tsx+++ b/client/src/components/Budget/BudgetPanel.tsx@@ -489,7 +489,7 @@ export default function BudgetPanel({ tripId, tripMembers = [] }: BudgetPanelProconst d = currencyDecimals(currency)const fmtPrice = (v: number | null | undefined) => v != null ? v.toFixed(d) : ''- const fmtDate = (iso: string) => { if (!iso) return ''; const d = new Date(iso + 'T00:00:00'); return d.toLocaleDateString(locale, { day: '2-digit', month: '2-digit', year: 'numeric' }) }+ const fmtDate = (iso: string) => { if (!iso) return ''; const d = new Date(iso + 'T00:00:00Z'); return d.toLocaleDateString(locale, { day: '2-digit', month: '2-digit', year: 'numeric', timeZone: 'UTC' }) }const header = ['Category', 'Name', 'Date', 'Total (' + currency + ')', 'Persons', 'Days', 'Per Person', 'Per Day', 'Per Person/Day', 'Note']const rows = [header.join(sep)]diff --git a/client/src/components/Collab/WhatsNextWidget.tsx b/client/src/components/Collab/WhatsNextWidget.tsxindex 6ad678df3..c5fd11a2d 100644--- a/client/src/components/Collab/WhatsNextWidget.tsx+++ b/client/src/components/Collab/WhatsNextWidget.tsx@@ -23,7 +23,7 @@ function formatDayLabel(date, t, locale) {if (d.toDateString() === now.toDateString()) return t('collab.whatsNext.today') || 'Today'if (d.toDateString() === tomorrow.toDateString()) return t('collab.whatsNext.tomorrow') || 'Tomorrow'- return d.toLocaleDateString(locale || undefined, { weekday: 'short', day: 'numeric', month: 'short' })+ return new Date(date + 'T00:00:00Z').toLocaleDateString(locale || undefined, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}interface TripMember {diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsxindex c83cc4b75..2a4c03a05 100644--- a/client/src/components/PDF/TripPDF.tsx+++ b/client/src/components/PDF/TripPDF.tsx@@ -61,15 +61,15 @@ function categoryIconSvg(iconName, color = '#6366f1', size = 24) {function shortDate(d, locale) {if (!d) return ''- return new Date(d + 'T00:00:00').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short' })+ return new Date(d + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}function longDateRange(days, locale) {const dd = [...days].filter(d => d.date).sort((a, b) => a.day_number - b.day_number)if (!dd.length) return null- const f = new Date(dd[0].date + 'T00:00:00')- const l = new Date(dd[dd.length - 1].date + 'T00:00:00')- return `${f.toLocaleDateString(locale, { day: 'numeric', month: 'long' })} – ${l.toLocaleDateString(locale, { day: 'numeric', month: 'long', year: 'numeric' })}`+ const f = new Date(dd[0].date + 'T00:00:00Z')+ const l = new Date(dd[dd.length - 1].date + 'T00:00:00Z')+ return `${f.toLocaleDateString(locale, { day: 'numeric', month: 'long', timeZone: 'UTC' })} – ${l.toLocaleDateString(locale, { day: 'numeric', month: 'long', year: 'numeric', timeZone: 'UTC' })}`}function dayCost(assignments, dayId, locale) {diff --git a/client/src/components/Photos/PhotoGallery.tsx b/client/src/components/Photos/PhotoGallery.tsxindex fe64a19b0..4e7a90daf 100644--- a/client/src/components/Photos/PhotoGallery.tsx+++ b/client/src/components/Photos/PhotoGallery.tsx@@ -213,5 +213,5 @@ function PhotoThumbnail({ photo, days, places, onClick }: PhotoThumbnailProps) {function formatDate(dateStr, locale) {if (!dateStr) return ''- return new Date(dateStr + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' })+ return new Date(dateStr + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' })}diff --git a/client/src/components/Planner/DayDetailPanel.tsx b/client/src/components/Planner/DayDetailPanel.tsxindex 22cc76ef9..49cd6ff8a 100644--- a/client/src/components/Planner/DayDetailPanel.tsx+++ b/client/src/components/Planner/DayDetailPanel.tsx@@ -154,9 +154,9 @@ export default function DayDetailPanel({ day, days, places, categories = [], triif (!day) return null- const formattedDate = day.date ? new Date(day.date + 'T00:00:00').toLocaleDateString(+ const formattedDate = day.date ? new Date(day.date + 'T00:00:00Z').toLocaleDateString(getLocaleForLanguage(language),- { weekday: 'long', day: 'numeric', month: 'long' }+ { weekday: 'long', day: 'numeric', month: 'long', timeZone: 'UTC' }) : nullconst placesWithCoords = places.filter(p => p.lat && p.lng)@@ -445,7 +445,7 @@ export default function DayDetailPanel({ day, days, places, categories = [], trionChange={v => setHotelDayRange(prev => ({ start: v, end: Math.max(v, prev.end) }))}options={days.map((d, i) => ({value: d.id,- label: `${d.title || t('planner.dayN', { n: i + 1 })}${d.date ? ` — ${new Date(d.date + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' })}` : ''}`,+ label: `${d.title || t('planner.dayN', { n: i + 1 })}${d.date ? ` — ${new Date(d.date + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' })}` : ''}`,}))}size="sm"/>@@ -457,7 +457,7 @@ export default function DayDetailPanel({ day, days, places, categories = [], trionChange={v => setHotelDayRange(prev => ({ start: Math.min(prev.start, v), end: v }))}options={days.map((d, i) => ({value: d.id,- label: `${d.title || t('planner.dayN', { n: i + 1 })}${d.date ? ` — ${new Date(d.date + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' })}` : ''}`,+ label: `${d.title || t('planner.dayN', { n: i + 1 })}${d.date ? ` — ${new Date(d.date + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' })}` : ''}`,}))}size="sm"/>diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsxindex b9850f372..b83270e2e 100644--- a/client/src/components/Planner/DayPlanSidebar.tsx+++ b/client/src/components/Planner/DayPlanSidebar.tsx@@ -743,7 +743,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({<div style={{ fontWeight: 600, fontSize: 14, color: 'var(--text-primary)', lineHeight: '1.3' }}>{trip?.title}</div>{(trip?.start_date || trip?.end_date) && (<div style={{ fontSize: 11, color: 'var(--text-faint)', marginTop: 3 }}>- {[trip.start_date, trip.end_date].filter(Boolean).map(d => new Date(d + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' })).join(' – ')}+ {[trip.start_date, trip.end_date].filter(Boolean).map(d => new Date(d + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' })).join(' – ')}{days.length > 0 && ` · ${days.length} ${t('dayplan.days')}`}</div>)}@@ -1671,7 +1671,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({{res.reservation_time?.includes('T')? new Date(res.reservation_time).toLocaleString(locale, { weekday: 'short', day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit', hour12: timeFormat === '12h' }): res.reservation_time- ? new Date(res.reservation_time + 'T00:00:00').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short' })+ ? new Date(res.reservation_time + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' }): ''}{res.reservation_end_time?.includes('T') && ` – ${new Date(res.reservation_end_time).toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', hour12: timeFormat === '12h' })}`}diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsxindex f6c00a57d..13deb63ae 100644--- a/client/src/components/Planner/PlaceInspector.tsx+++ b/client/src/components/Planner/PlaceInspector.tsx@@ -373,7 +373,7 @@ export default function PlaceInspector({{res.reservation_time && (<div><div style={{ fontSize: 8, fontWeight: 600, color: 'var(--text-faint)', textTransform: 'uppercase' }}>{t('reservations.date')}</div>- <div style={{ fontSize: 10, fontWeight: 500, color: 'var(--text-primary)', marginTop: 1 }}>{new Date(res.reservation_time).toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short' })}</div>+ <div style={{ fontSize: 10, fontWeight: 500, color: 'var(--text-primary)', marginTop: 1 }}>{new Date((res.reservation_time.includes('T') ? res.reservation_time.split('T')[0] : res.reservation_time) + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}</div></div>)}{res.reservation_time?.includes('T') && (diff --git a/client/src/components/Planner/PlacesSidebar.tsx b/client/src/components/Planner/PlacesSidebar.tsxindex 91e50a5b6..ce8c6c519 100644--- a/client/src/components/Planner/PlacesSidebar.tsx+++ b/client/src/components/Planner/PlacesSidebar.tsx@@ -424,7 +424,7 @@ const PlacesSidebar = React.memo(function PlacesSidebar({<div style={{ width: 28, height: 28, borderRadius: '50%', background: 'var(--bg-tertiary)', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 12, fontWeight: 700, color: 'var(--text-primary)', flexShrink: 0 }}>{i + 1}</div><div style={{ flex: 1, minWidth: 0 }}><div style={{ fontSize: 13, fontWeight: 500, color: 'var(--text-primary)' }}>{day.title || t('dayplan.dayN', { n: i + 1 })}</div>- {day.date && <div style={{ fontSize: 11, color: 'var(--text-faint)' }}>{new Date(day.date + 'T00:00:00').toLocaleDateString()}</div>}+ {day.date && <div style={{ fontSize: 11, color: 'var(--text-faint)' }}>{new Date(day.date + 'T00:00:00Z').toLocaleDateString(undefined, { timeZone: 'UTC' })}</div>}</div>{(assignments[String(day.id)] || []).some(a => a.place?.id === dayPickerPlace.id) && <Check size={14} color="var(--text-faint)" />}</button>diff --git a/client/src/components/Planner/ReservationModal.tsx b/client/src/components/Planner/ReservationModal.tsxindex dbc3ab36a..8a376d776 100644--- a/client/src/components/Planner/ReservationModal.tsx+++ b/client/src/components/Planner/ReservationModal.tsx@@ -572,6 +572,6 @@ export function ReservationModal({ isOpen, onClose, onSave, reservation, days, pfunction formatDate(dateStr, locale) {if (!dateStr) return ''- const d = new Date(dateStr + 'T00:00:00')- return d.toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short' })+ const d = new Date(dateStr + 'T00:00:00Z')+ return d.toLocaleDateString(locale || undefined, { day: 'numeric', month: 'short', timeZone: 'UTC' })}diff --git a/client/src/components/Planner/ReservationsPanel.tsx b/client/src/components/Planner/ReservationsPanel.tsxindex b6f9c551f..4d37fab8f 100644--- a/client/src/components/Planner/ReservationsPanel.tsx+++ b/client/src/components/Planner/ReservationsPanel.tsx@@ -84,8 +84,8 @@ function ReservationCard({ r, tripId, onEdit, onDelete, files = [], onNavigateTo}const fmtDate = (str) => {- const d = new Date(str)- return d.toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short' })+ const dateOnly = str.includes('T') ? str.split('T')[0] : str+ return new Date(dateOnly + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}const fmtTime = (str) => {const d = new Date(str)diff --git a/client/src/components/Trips/TripFormModal.tsx b/client/src/components/Trips/TripFormModal.tsxindex 4e834b916..aff401204 100644--- a/client/src/components/Trips/TripFormModal.tsx+++ b/client/src/components/Trips/TripFormModal.tsx@@ -197,10 +197,10 @@ export default function TripFormModal({ isOpen, onClose, onSave, trip, onCoverUpif (!prev.end_date || prev.end_date < value) {next.end_date = value} else if (prev.start_date) {- const oldStart = new Date(prev.start_date + 'T00:00:00')- const oldEnd = new Date(prev.end_date + 'T00:00:00')+ const oldStart = new Date(prev.start_date + 'T00:00:00Z')+ const oldEnd = new Date(prev.end_date + 'T00:00:00Z')const duration = Math.round((oldEnd - oldStart) / 86400000)- const newEnd = new Date(value + 'T00:00:00')+ const newEnd = new Date(value + 'T00:00:00Z')newEnd.setDate(newEnd.getDate() + duration)next.end_date = newEnd.toISOString().split('T')[0]}diff --git a/client/src/components/Vacay/holidays.ts b/client/src/components/Vacay/holidays.tsindex fe5903b0d..61f92a9af 100644--- a/client/src/components/Vacay/holidays.ts+++ b/client/src/components/Vacay/holidays.ts@@ -104,18 +104,18 @@ export function getHolidays(year: number, bundesland: string = 'NW'): Record<str}export function isWeekend(dateStr: string, weekendDays: number[] = [0, 6]): boolean {- const d = new Date(dateStr + 'T00:00:00')- return weekendDays.includes(d.getDay())+ const d = new Date(dateStr + 'T00:00:00Z')+ return weekendDays.includes(d.getUTCDay())}export function getWeekday(dateStr: string): string {- const d = new Date(dateStr + 'T00:00:00')- return ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'][d.getDay()]+ const d = new Date(dateStr + 'T00:00:00Z')+ return ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'][d.getUTCDay()]}export function getWeekdayFull(dateStr: string): string {- const d = new Date(dateStr + 'T00:00:00')- return ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'][d.getDay()]+ const d = new Date(dateStr + 'T00:00:00Z')+ return ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'][d.getUTCDay()]}export function daysInMonth(year: number, month: number): number {@@ -123,8 +123,8 @@ export function daysInMonth(year: number, month: number): number {}export function formatDate(dateStr: string, locale?: string): string {- const d = new Date(dateStr + 'T00:00:00')- return d.toLocaleDateString(locale || undefined, { weekday: 'short', day: '2-digit', month: '2-digit', year: 'numeric' })+ const d = new Date(dateStr + 'T00:00:00Z')+ return d.toLocaleDateString(locale || undefined, { weekday: 'short', day: '2-digit', month: '2-digit', year: 'numeric', timeZone: 'UTC' })}export { BUNDESLAENDER }diff --git a/client/src/components/shared/CustomDateTimePicker.tsx b/client/src/components/shared/CustomDateTimePicker.tsxindex e764d2101..1b685a90f 100644--- a/client/src/components/shared/CustomDateTimePicker.tsx+++ b/client/src/components/shared/CustomDateTimePicker.tsx@@ -21,9 +21,9 @@ export function CustomDatePicker({ value, onChange, placeholder, style = {}, comconst ref = useRef<HTMLDivElement>(null)const dropRef = useRef<HTMLDivElement>(null)- const parsed = value ? new Date(value + 'T00:00:00') : null- const [viewYear, setViewYear] = useState(parsed?.getFullYear() || new Date().getFullYear())- const [viewMonth, setViewMonth] = useState(parsed?.getMonth() ?? new Date().getMonth())+ const parsed = value ? new Date(value + 'T00:00:00Z') : null+ const [viewYear, setViewYear] = useState(parsed?.getUTCFullYear() || new Date().getFullYear())+ const [viewMonth, setViewMonth] = useState(parsed?.getUTCMonth() ?? new Date().getMonth())useEffect(() => {const handler = (e: MouseEvent) => {@@ -36,7 +36,7 @@ export function CustomDatePicker({ value, onChange, placeholder, style = {}, com}, [open])useEffect(() => {- if (open && parsed) { setViewYear(parsed.getFullYear()); setViewMonth(parsed.getMonth()) }+ if (open && parsed) { setViewYear(parsed.getUTCFullYear()); setViewMonth(parsed.getUTCMonth()) }}, [open])const prevMonth = () => { if (viewMonth === 0) { setViewMonth(11); setViewYear(y => y - 1) } else setViewMonth(m => m - 1) }@@ -47,7 +47,7 @@ export function CustomDatePicker({ value, onChange, placeholder, style = {}, comconst startDay = (getWeekday(viewYear, viewMonth, 1) + 6) % 7const weekdays = Array.from({ length: 7 }, (_, i) => new Date(2024, 0, i + 1).toLocaleDateString(locale, { weekday: 'narrow' }))- const displayValue = parsed ? parsed.toLocaleDateString(locale, compact ? { day: '2-digit', month: '2-digit', year: '2-digit' } : { day: 'numeric', month: 'short', year: 'numeric' }) : null+ const displayValue = parsed ? parsed.toLocaleDateString(locale, compact ? { day: '2-digit', month: '2-digit', year: '2-digit', timeZone: 'UTC' } : { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' }) : nullconst selectDay = (day: number) => {const y = String(viewYear)@@ -57,7 +57,7 @@ export function CustomDatePicker({ value, onChange, placeholder, style = {}, comsetOpen(false)}- const selectedDay = parsed && parsed.getFullYear() === viewYear && parsed.getMonth() === viewMonth ? parsed.getDate() : null+ const selectedDay = parsed && parsed.getUTCFullYear() === viewYear && parsed.getUTCMonth() === viewMonth ? parsed.getUTCDate() : nullconst today = new Date()const isToday = (d: number) => today.getFullYear() === viewYear && today.getMonth() === viewMonth && today.getDate() === ddiff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsxindex 16f36d06f..a3863791a 100644--- a/client/src/pages/DashboardPage.tsx+++ b/client/src/pages/DashboardPage.tsx@@ -59,12 +59,12 @@ function getTripStatus(trip: DashboardTrip): string | null {function formatDate(dateStr: string | null | undefined, locale: string = 'en-US'): string | null {if (!dateStr) return null- return new Date(dateStr + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short', year: 'numeric' })+ return new Date(dateStr + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' })}function formatDateShort(dateStr: string | null | undefined, locale: string = 'en-US'): string | null {if (!dateStr) return null- return new Date(dateStr + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' })+ return new Date(dateStr + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' })}function sortTrips(trips: DashboardTrip[]): DashboardTrip[] {diff --git a/client/src/pages/SharedTripPage.tsx b/client/src/pages/SharedTripPage.tsxindex d8fb54a34..09fa86691 100644--- a/client/src/pages/SharedTripPage.tsx+++ b/client/src/pages/SharedTripPage.tsx@@ -106,7 +106,7 @@ export default function SharedTripPage() {{(trip.start_date || trip.end_date) && (<div style={{ marginTop: 10, display: 'inline-flex', alignItems: 'center', gap: 8, padding: '6px 14px', borderRadius: 20, background: 'rgba(255,255,255,0.08)', backdropFilter: 'blur(4px)', border: '1px solid rgba(255,255,255,0.08)' }}><span style={{ fontSize: 12, fontWeight: 500, opacity: 0.8 }}>- {[trip.start_date, trip.end_date].filter(Boolean).map((d: string) => new Date(d + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short', year: 'numeric' })).join(' — ')}+ {[trip.start_date, trip.end_date].filter(Boolean).map((d: string) => new Date(d + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' })).join(' — ')}</span>{days?.length > 0 && <span style={{ fontSize: 11, opacity: 0.4 }}>·</span>}{days?.length > 0 && <span style={{ fontSize: 11, opacity: 0.5 }}>{days.length} {t('shared.days')}</span>}@@ -199,7 +199,7 @@ export default function SharedTripPage() {<div style={{ width: 28, height: 28, borderRadius: '50%', background: selectedDay === day.id ? '#111827' : '#f3f4f6', color: selectedDay === day.id ? 'white' : '#6b7280', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 12, fontWeight: 700, flexShrink: 0 }}>{di + 1}</div><div style={{ flex: 1 }}><div style={{ fontSize: 14, fontWeight: 600, color: '#111827' }}>{day.title || `Day ${day.day_number}`}</div>- {day.date && <div style={{ fontSize: 11, color: '#9ca3af', marginTop: 1 }}>{new Date(day.date + 'T00:00:00').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short' })}</div>}+ {day.date && <div style={{ fontSize: 11, color: '#9ca3af', marginTop: 1 }}>{new Date(day.date + 'T00:00:00Z').toLocaleDateString(locale, { weekday: 'short', day: 'numeric', month: 'short', timeZone: 'UTC' })}</div>}</div>{dayAccs.map((acc: any) => (<span key={acc.id} style={{ fontSize: 9, padding: '2px 6px', borderRadius: 4, background: '#f3f4f6', color: '#6b7280', display: 'flex', alignItems: 'center', gap: 3 }}>@@ -274,7 +274,7 @@ export default function SharedTripPage() {const meta = typeof r.metadata === 'string' ? JSON.parse(r.metadata || '{}') : (r.metadata || {})const TIcon = TRANSPORT_ICONS[r.type] || Ticketconst time = r.reservation_time?.includes('T') ? r.reservation_time.split('T')[1]?.substring(0, 5) : ''- const date = r.reservation_time ? new Date(r.reservation_time.includes('T') ? r.reservation_time : r.reservation_time + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'short' }) : ''+ const date = r.reservation_time ? new Date((r.reservation_time.includes('T') ? r.reservation_time.split('T')[0] : r.reservation_time) + 'T00:00:00Z').toLocaleDateString(locale, { day: 'numeric', month: 'short', timeZone: 'UTC' }) : ''return (<div key={r.id} style={{ background: 'var(--bg-card, white)', borderRadius: 10, padding: '12px 16px', border: '1px solid var(--border-faint, #e5e7eb)', display: 'flex', alignItems: 'center', gap: 12 }}><div style={{ width: 32, height: 32, borderRadius: '50%', background: '#f3f4f6', display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>diff --git a/client/src/utils/formatters.ts b/client/src/utils/formatters.tsindex 7e7ebc04b..980f85ac1 100644--- a/client/src/utils/formatters.ts+++ b/client/src/utils/formatters.ts@@ -10,9 +10,9 @@ export function formatDate(dateStr: string | null | undefined, locale: string, tif (!dateStr) return nullconst opts: Intl.DateTimeFormatOptions = {weekday: 'short', day: 'numeric', month: 'short',+ timeZone: timeZone || 'UTC',}- if (timeZone) opts.timeZone = timeZone- return new Date(dateStr + 'T00:00:00').toLocaleDateString(locale, opts)+ return new Date(dateStr + 'T00:00:00Z').toLocaleDateString(locale, opts)}export function formatTime(timeStr: string | null | undefined, locale: string, timeFormat: string): string {