Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions app/pages/track/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const { data: ad } = await useFetch<Ad[]>('/api/ad')

provideFavorites()

const CONFERENCE_START_DAY = '2026-08-08'
const localeKey = computed(() => (locale.value === 'zh' ? 'zh' : 'en'))
const meta = computed(() => getTrackMeta(Number(route.params.id)))

Expand Down Expand Up @@ -109,8 +110,13 @@ function closeSession() {
}

const dayIndex = computed(() => {
const idx = days.value.indexOf(selectedDay.value)
return idx >= 0 ? idx + 1 : 1
if (!selectedDay.value) {
return 1
}

const start = new Date(`${CONFERENCE_START_DAY}T00:00:00+08:00`)
const selected = new Date(`${selectedDay.value}T00:00:00+08:00`)
return Math.round((selected.getTime() - start.getTime()) / 86_400_000) + 1
})

const dayRooms = computed(() => {
Expand Down