JuliaTime / TimeZones.jl

IANA time zone database access for the Julia programming language
Other
86 stars 52 forks source link

Getting error no promotion exists for Time and TimeZones.ZonedDateTime #337

Open jrmaher opened 3 years ago

jrmaher commented 3 years ago

Getting this error when running a script ---- not getting in repl

How can I go about getting more debug info?

sunrise.zip

omus commented 3 years ago

Seems strange your only seeing this error when running as a script. The error you posted can be minimized to:

julia> using Dates, TimeZones

julia> promote(now(tz"UTC"), Time(0)) 
ERROR: no promotion exists for Time and ZonedDateTime

Julia is attempting to promote these two different types into a single type. I'd recommend reading Julia's documentation on promotion.

I can possibly help you further if you provide a full stack track.