From 143df355a55de275af37c88f25e65b4fc08ddb9c Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 2 May 2026 16:11:49 +0300 Subject: [PATCH] Update clickthecity.com.config.js --- sites/clickthecity.com/clickthecity.com.config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sites/clickthecity.com/clickthecity.com.config.js b/sites/clickthecity.com/clickthecity.com.config.js index b65096349..1706b522d 100644 --- a/sites/clickthecity.com/clickthecity.com.config.js +++ b/sites/clickthecity.com/clickthecity.com.config.js @@ -19,10 +19,7 @@ module.exports = { }, data({ date }) { const params = new URLSearchParams() - params.append( - 'optDate', - dayjs(date.valueOf()).tz('Asia/Manila').format('YYYY-MM-DD') - ) + params.append('optDate', dayjs(date.valueOf()).tz('Asia/Manila').format('YYYY-MM-DD')) params.append('optTime', '00:00:00') return params @@ -79,7 +76,7 @@ function parseStart($item, date) { const url = $item('td.cPrg > a').attr('href') || '' let [, time] = url.match(/starttime=(\d{1,2}%3A\d{2}\+(AM|PM))/) || [null, null] if (!time) return null - time = `${date.format('YYYY-MM-DD')} ${time.replace('%3A', ':').replace('+', ' ')}` + time = `${date.format('YYYY-MM-DD')} ${decodeURIComponent(time).replace(/\+/g, ' ')}` return dayjs.tz(time, 'YYYY-MM-DD h:mm A', 'Asia/Manila').utc() } @@ -88,7 +85,7 @@ function parseStop($item, date) { const url = $item('td.cPrg > a').attr('href') || '' let [, time] = url.match(/endtime=(\d{1,2}%3A\d{2}\+(AM|PM))/) || [null, null] if (!time) return null - time = `${date.format('YYYY-MM-DD')} ${time.replace('%3A', ':').replace('+', ' ')}` + time = `${date.format('YYYY-MM-DD')} ${decodeURIComponent(time).replace(/\+/g, ' ')}` return dayjs.tz(time, 'YYYY-MM-DD h:mm A', 'Asia/Manila').utc() }