From 5aee921ac5edd9d1d9df161f7b7d188d03dc9056 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Thu, 9 Jun 2022 20:18:52 +0700 Subject: [PATCH] Fix rate up on wish page after ayaka banner --- src/routes/wish/import.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/wish/import.svelte b/src/routes/wish/import.svelte index 9c6ca066..7a7875d5 100644 --- a/src/routes/wish/import.svelte +++ b/src/routes/wish/import.svelte @@ -703,10 +703,11 @@ bannerList = banners[type].map((e) => { // banner data based on Asia time const diff = e.timezoneDependent === true ? 8 - getTimeOffset() : 0; + const diffEnd = e.timezoneDependentEnd === true ? 8 - getTimeOffset() : 0; const id = `${e.name} ${e.image}`; const start = dayjs(e.start, 'YYYY-MM-DD HH:mm:ss').subtract(diff, 'hour'); - const end = dayjs(e.end, 'YYYY-MM-DD HH:mm:ss'); + const end = dayjs(e.end, 'YYYY-MM-DD HH:mm:ss').subtract(diffEnd, 'hour'); return { ...e,