Skip to content

Fix ISO date conversion bug - #357

Open
bikerpatch wants to merge 1 commit into
zackurben:masterfrom
bikerpatch:master
Open

Fix ISO date conversion bug#357
bikerpatch wants to merge 1 commit into
zackurben:masterfrom
bikerpatch:master

Conversation

@bikerpatch

Copy link
Copy Markdown

Fixes the ISO date conversion bug in #356

The adjusted code, on polish, will first look for a value in data["Meta Data"]?.["6. Time Zone"] and pass it to the recursive function to polish the object. If it can't find a value it will default to UTC, which could lead into the same bug as before, but in the absence of a time zone from AV we have to assume something reasonable. I couldn't find a default timezone in the documentation. If you prefer, this could be changed to default to US Eastern.

When the polish routine finds a timestamp in the data, it will apply the timezone using the luxon library: https://moment.github.io/luxon/#/zones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant