Fix excel import after ayaka banner

pull/1/head
Made Baruna 2022-06-01 13:07:58 +07:00
parent 39d0fc24d2
commit c40b22a3d2
1 changed files with 2 additions and 1 deletions

View File

@ -60,9 +60,10 @@ export async function process(id) {
const selectedBanners = banners[bannerType].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 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 fullName = `${e.name} ${e.image}`;