From f4df82f658d18e8fb0cea3b8dac2a1e1800f010a Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 8 Jan 2025 02:24:31 +0100 Subject: [PATCH] fix wrong timezone --- lib/routes/genossenschaften/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/routes/genossenschaften/index.ts b/lib/routes/genossenschaften/index.ts index 73735d4ee0c240..464ff6de809b08 100644 --- a/lib/routes/genossenschaften/index.ts +++ b/lib/routes/genossenschaften/index.ts @@ -1,12 +1,6 @@ import { load } from 'cheerio'; import ofetch from '@/utils/ofetch'; import type { Data, DataItem, Route } from '@/types'; -import dayjs from 'dayjs'; -import timezone from 'dayjs/plugin/timezone'; -import utc from 'dayjs/plugin/utc'; - -dayjs.extend(timezone); -dayjs.extend(utc); const FEED_TITLE = 'Genossenschaften.immo' as const; const FEED_LOGO = 'https://genossenschaften.immo/static/gimmo/img/favicon/favicon-128x128.png' as const; @@ -85,10 +79,11 @@ filters, copy the part of the URL after the \`?\`. const $el = $(el); const name = $el.find('[itemprop=name]').text(); const body = $el.find('.card-body').text().trim(); + // UTC timestamp: