apjanke / octave-tablicious

Table (relational, tabular data) implementation for GNU Octave
https://apjanke.github.io/octave-tablicious/
GNU General Public License v3.0
29 stars 11 forks source link

Handle Linux systems with missing tzdb #128

Open apjanke opened 8 months ago

apjanke commented 8 months ago

Following up on https://github.com/apjanke/octave-tablicious/issues/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