Skip to content

Commit

Permalink
dev: commit working tzdata to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tommilligan committed Feb 27, 2025
1 parent 97e50da commit e555cac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ Duckling is a Haskell library that parses text into structured data.
```

## Requirements

### Haskell

A Haskell environment is required. We recommend using
[stack](https://haskell-lang.org/get-started).

### PCRE

On macOS you'll need to install PCRE development headers.
The easiest way to do that is with [Homebrew](https://brew.sh/):
```
Expand All @@ -20,6 +25,21 @@ brew install pcre
If that doesn't help, try running `brew doctor` and fix
the issues it finds.

### Timezone data (tzdata)

duckling requires timezone data to handle date parsing.
This works with the system data `tzdata` built for Ubuntu 20.04.

A copy of known working tzdata is included in this repository in the `./data` directory.
It is known that this version of `duckling` does not work with newer versions of `tzdata` in Ubuntu 22.04+

This data was captured from a known working duckling build like so:

```bash
# Outputs .deb file in ./data directory
docker run --rm -it -v "$(pwd)/data:/mnt/data" ubuntu:20.04 /bin/bash -c 'apt-get update && apt-get download tzdata && mv /tzdata* /mnt/data'
```

## Quickstart
To compile and run the binary:
```
Expand Down
Binary file added data/tzdata_2024b-0ubuntu0.20.04.1_all.deb
Binary file not shown.

0 comments on commit e555cac

Please sign in to comment.