Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Unreleased
- Fix bug where the library will crash if asked to load Time Zone information
from a nonexistant directory.

## v1.0.0 - 2025-09-21
- Initial release
- Exposes parser as a module
- Adds support for leap seconds
- Explicit loading of time zone database into an opaque record
- Completely overhauled API

## v0.1.0 - 2025-09-17
- Initial proof of concept.
4 changes: 3 additions & 1 deletion src/tzif/database.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ pub fn load_from_os() -> Result(TzDatabase, Nil) {
pub fn load_from_path(path: String) -> Result(TzDatabase, Nil) {
let parts = filepath.split(path)
let drop_number = list.length(parts)
let assert Ok(filenames) = simplifile.get_files(path)
use filenames <- result.try(
simplifile.get_files(path) |> result.replace_error(Nil),
)

let data =
filenames
Expand Down