Thank you for the reply!

The first option looks exactly like what I need. However, do I need to install 
some additional libraries to make it work? I am on Pop! OS which is a 
derivative of Ubuntu and I have tzdata package installed (not sure if it's 
needed at all). But when I use `loadPosixTz"Asia/Yekaterinburg"` with `import 
timezones/posixtimezones` it crashes at runtime with the following stacktrace:
    
    
    posixtimezones.nim(58)   loadTzInternal
    asyncfutures.nim(372)    read
    asyncfutures.nim(420)    asyncCheckCallback
    Error: unhandled exception: Invalid tz file [TzFileParsingError]
    
    Run

As for the `fetchjsontimezones`, I saw the description in github repo, but I 
was unable to use it. Running the usage example from repo yields this 
stacktrace:
    
    
    fetchjsontimezones 2017c --out:tzdata.json --regions:"europe america"
    Fetching and processing timezone data. This might take a while...
    zic: Can't open /tmp/fetchtz/unpacked/america: No such file or directory
    fatal.nim(49)            sysFatal
    Error: unhandled exception: fetchjsontimezones.nim(35, 18) `execCmd(fmt"zic 
-d {ZicDir} {files}") == 0`  [AssertionDefect]
    
    Run

Reply via email to