mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-05 18:26:56 +01:00
Fix excel import after ayaka banner
This commit is contained in:
parent
39d0fc24d2
commit
c40b22a3d2
1 changed files with 2 additions and 1 deletions
|
@ -60,9 +60,10 @@ export async function process(id) {
|
||||||
const selectedBanners = banners[bannerType].map((e) => {
|
const selectedBanners = banners[bannerType].map((e) => {
|
||||||
// banner data based on Asia time
|
// banner data based on Asia time
|
||||||
const diff = e.timezoneDependent === true ? 8 - getTimeOffset() : 0;
|
const diff = e.timezoneDependent === true ? 8 - getTimeOffset() : 0;
|
||||||
|
const diffEnd = e.timezoneDependentEnd === true ? 8 - getTimeOffset() : 0;
|
||||||
|
|
||||||
const start = dayjs(e.start, 'YYYY-MM-DD HH:mm:ss').subtract(diff, 'hour');
|
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');
|
||||||
const image = `/images/banners/${e.name} ${e.image}.png`;
|
const image = `/images/banners/${e.name} ${e.image}.png`;
|
||||||
const fullName = `${e.name} ${e.image}`;
|
const fullName = `${e.name} ${e.image}`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue