kirtanp98 / mangaupdates-graphql-api

A GraphQL api to fetch information from mangaupdates.com
MIT License
7 stars 0 forks source link

Fix date parse by including timezone #6

Closed kirtanp98 closed 3 years ago

kirtanp98 commented 3 years ago

Currently parsed dates does not include the timezone when it parses, so the time is off by a couple of hours. dates-fns doesn't have a way to parse timezone abbreviations, so we need to figure out how we can do this.

https://github.com/kirtanp98/mangaupdates-graphql-api/blob/48b46fc5f1ca1eba294d49028affd3fbec1354cc/src/parser/MangaParser.ts#L444-L450

Mangaupdates looks like it sets all updated times in PST image

zain08816 commented 3 years ago

August 2nd 2021, 10:22AM -08:00

gets converted properly

2021-08-02T18:22:00.000Z

The code is working as intended. This issue can be closed.