Closed dmbaturin closed 3 years ago
Aha, good point. Thanks!
I'll propagate the fix to the other places where local time zone is queried similarly.
Just for reference, I moved your function into Timere.Utils.get_local_tz_for_arg
Thanks, I didn't notice there are more instances of that issue (though I only started playing with the library today, so it's not surprising).
Nice! Yeah those cases are in timere itself.
I'm working on Timere 0.3.0 (soon to be released), so there will be some small changes around the API, but things are largely the same otherwise.
There are situations when the user will get a generic
Invalid_argument "CCOpt.get_exn"
error message when trying to useTimere_parse.date_time
, and it will be impossible to debug without reading the source.This patch attaches a (hopefully) helpful error message to
Invalid_argument
.