Update timeline

pull/1/head
Made Baruna 2021-04-06 07:07:38 +08:00
parent 96e7296f16
commit b4fd55276b
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export const eventsData = [
name: 'A Thousand Questions With Paimon',
pos: '60% 30%',
image: 'a_thousand_questions_with_paimon.jpg',
start: '2021-04-06 06:00:00',
start: '2021-04-06 13:00:00',
end: '2021-04-13 04:00:00',
color: '#EFDEB4',
zoom: '180%',

View File

@ -60,7 +60,7 @@
<span class="text-sm rounded-xl text-black font-semibold bg-white bg-opacity-75 px-1">
{diffEnd > 86400000
? `${Math.trunc(dayjs.duration(diffEnd).asDays())}d ${
shouldShowHourEnd ? dayjs.duration(diffEnd).format('HH:mm:ss') : ''
shouldShowHourEnd ? dayjs.duration(diffEnd).format('H[h]') : ''
}`
: dayjs.duration(diffEnd).format('HH:mm:ss')}
</span>
@ -78,7 +78,7 @@
<span class="text-sm rounded-xl text-black font-semibold bg-white bg-opacity-75 px-1">
{diffStart > 86400000
? `${Math.trunc(dayjs.duration(diffStart).asDays())}d ${
shouldShowHourStart ? dayjs.duration(diffStart).format('HH:mm:ss') : ''
shouldShowHourStart ? dayjs.duration(diffStart).format('H[h]') : ''
}`
: dayjs.duration(diffStart).format('HH:mm:ss')}
</span>