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

Handle Linux systems with missing tzdb #128

Open
5 tasks
apjanke opened this issue Feb 9, 2024 · 0 comments
Open
5 tasks

Handle Linux systems with missing tzdb #128

apjanke opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@apjanke
Copy link
Owner

apjanke commented Feb 9, 2024

Following up on #125

When you do Tablicious time zone related stuff on a Linux box that's missing tzdb or has it installed somewhere besides /usr/share/zoneinfo, it raises an error about an invalid zoneid. Like this:

  >>>>> processing /usr/share/octave/packages/tablicious-0.4.2/@datetime/datetime.m
  ***** test datetime ('2011-03-07 12:34:56', 'TimeZone', 'America/New_York');
  !!!!! test failed
  Undefined TimeZone: America/New_York

Would be nice to have the error say "missing tzdb package" instead; it took us a while to figure out what was going on here. Maybe even fall back to the bundled tzdb, but think about that for a bit first.

TODO

  • Better error handling for missing tzdb.
    • Dynamic tzdb detect, which detects the whole db being missing, instead of treating it as a single missing zone file indicating an invalid zone id; details in error message.
  • Figure out how to build a tzdata-less Ubuntu VM or container for testing this.
  • Caching of parsed time zone files and tab, while we're in here.
  • Learn and run doctest on Tablicious
@apjanke apjanke self-assigned this Feb 9, 2024
@apjanke apjanke added the enhancement New feature or request label Feb 9, 2024
@github-project-automation github-project-automation bot moved this to Needs triage in Octave-Tablicious Feb 9, 2024
@apjanke apjanke moved this from Needs triage to Low priority in Octave-Tablicious Feb 9, 2024
@apjanke apjanke added this to the 1.0.0 milestone Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Low priority
Development

No branches or pull requests

1 participant