Merge branch 'master' into pr/787

This commit is contained in:
Aleksandr Statciuk
2022-05-10 16:07:20 +03:00
3 changed files with 15 additions and 15 deletions

View File

@@ -14,7 +14,7 @@
"readme:update": "node scripts/commands/readme/update.js",
"test": "npx jest --runInBand",
"test:commands": "npx jest --runInBand -- commands",
"test:sites": "npx jest --runInBand -- sites",
"test:sites": "TZ=UTC npx jest --runInBand -- sites",
"act:test": "act workflow_dispatch -W .github/workflows/_test.yml",
"act:check": "act workflow_dispatch -W .github/workflows/_check.yml",
"act:update-readme": "act workflow_dispatch -W .github/workflows/_update-readme.yml",

View File

@@ -51,7 +51,7 @@ function parseStart(item) {
const [_, M, D, YYYY] = item.adddate.match(/(\d+)\/(\d+)\/(\d+) /)
const [HH, mm] = item.start_Time.split(':')
return dayjs(`${YYYY}-${M}-${D}T${HH}:${mm}:00`, 'YYYY-M-DTHH:mm:ss', 'Asia/Riyadh')
return dayjs.tz(`${YYYY}-${M}-${D}T${HH}:${mm}:00`, 'YYYY-M-DTHH:mm:ss', 'Asia/Riyadh')
}
function parseDuration(item) {

View File

@@ -29,34 +29,34 @@ it('can parse response', () => {
expect(result).toMatchObject([
{
start: '2021-11-12T20:00:00.000Z',
stop: '2021-11-12T21:30:00.000Z',
start: '2021-11-12T23:00:00.000Z',
stop: '2021-11-13T00:30:00.000Z',
title: 'Bienvenidos a bordo'
},
{
start: '2021-11-12T21:30:00.000Z',
stop: '2021-11-12T22:45:00.000Z',
start: '2021-11-13T00:30:00.000Z',
stop: '2021-11-13T01:45:00.000Z',
title: 'Ciudad de sombras'
},
{
start: '2021-11-12T22:45:00.000Z',
stop: '2021-11-13T00:30:00.000Z',
start: '2021-11-13T01:45:00.000Z',
stop: '2021-11-13T03:30:00.000Z',
title: 'Rascacielos: Rescate en las Alturas',
icon: 'https://imagenes.gatotv.com/categorias/peliculas/miniatura/rascacielos.jpg',
description:
'Cuando un ex rescatista de rehenes del FBI evalúa la seguridad de un rascacielos en China, un incendio repentino hace que sea acusado injustamente.'
},
{
start: '2021-11-13T10:30:00.000Z',
stop: '2021-11-13T10:41:00.000Z',
start: '2021-11-13T13:30:00.000Z',
stop: '2021-11-13T13:41:00.000Z',
title: 'Los Jóvenes Titanes En Acción',
icon: 'https://imagenes.gatotv.com/categorias/caricaturas/miniatura/los_jovenes_titanes_en_accion.jpg',
description:
'Robin, Starfire, Raven, Chico Bestia y Cyborg se preparan para nuevas aventuras cómicas después de hacer un sándwich, jugar algún videojuego o lavar la ropa.'
},
{
start: '2021-11-13T20:55:00.000Z',
stop: '2021-11-14T01:00:00.000Z',
start: '2021-11-13T23:55:00.000Z',
stop: '2021-11-14T04:00:00.000Z',
title: 'Decisión 2021'
}
])