niclasmattsson / GlobalEnergyGIS

Generates input data for energy models on renewable energy in arbitrary world regions using public datasets. Written in Julia 1.x.
MIT License
64 stars 24 forks source link

Fix handling LegacyTimezone without "etc" prefix. #14

Open euronion opened 3 years ago

euronion commented 3 years ago

This PR addresses #12 .

In the previous implementation the code checked for "etc"-prefixes of time-zones. But not all LegacyTimezones in Julia start with "etc".

Since julia's TimeZones does not seem to provide a list of LegacyTimezones, the PR handles this issue using a try-catch exception handling block.

sam-watttime commented 1 year ago

@niclasmattsson can you merge this to master? I spent a few hours trying to debug what is already fixed in this PR.

Thanks for a great package!