Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Using TimeZones breaks data import #481

Closed
clizbe opened this issue Nov 7, 2024 · 3 comments
Closed

BUG: Using TimeZones breaks data import #481

clizbe opened this issue Nov 7, 2024 · 3 comments

Comments

@clizbe
Copy link

clizbe commented Nov 7, 2024

I am using Dates in a notebook and wanted to use TimeZones to adjust some data.
Since adding 'using TimeZones' to my Pluto notebook, I get this error when trying to read-in data.
It also makes the Pluto notebook work like crazy and eventually time-out.

The line was working fine before, and removing the 'using TimeZones' makes it work again.
I suspect it's some conflict with the Dates package in asserting data format?

image

Julia 1.10.5
using Dates, DataFrames, CSV, XLSX, Plots, Statistics, StatsPlots, EasyFit, PlutoUI, TimeZones

Sorry can't give much more info right now!

@omus
Copy link
Member

omus commented Nov 8, 2024

I suspect what may be going on is you are defining dateformat"YYYY-MM-DDTHH:MM:SSZ" before you are importing TimeZones. Doing that results in Z being interpreted as a literal character when TimeZones is not imported but the behavior changes after TimeZones is imported. You may want to try using dateformat"YYYY-MM-DD\THH:MM:SS\Z" and check if the problem goes away.

If that isn't the problem then uploading you Manifest.toml and some steps to reproduce the problem would be helpful.

@clizbe
Copy link
Author

clizbe commented Nov 19, 2024

Yes that worked, thank you!

@clizbe clizbe closed this as completed Nov 19, 2024
@omus
Copy link
Member

omus commented Nov 19, 2024

Related to: JuliaLang/julia#29339

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

No branches or pull requests

2 participants