Skip to content

Commit

Permalink
Fix truncated generated timezone info
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Feb 19, 2024
1 parent db011b6 commit e2e2a79
Show file tree
Hide file tree
Showing 621 changed files with 835 additions and 851 deletions.
Binary file added .DS_Store
Binary file not shown.
29 changes: 2 additions & 27 deletions sugar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,7 @@ Check out the [documentation](https://pub.dev/documentation/sugar/latest/) to ge
This section is for maintainers. It describes how to update the embedded IANA database. It assumes that you are on macOS/Linux.
The current version of the IANA database is 2024a.

Download the latest [Complete Distribution](https://www.iana.org/time-zones).

Extract the directory from the tarball:
```shell
tar --lzip -xvf tzdb-<version>.tar.lz
```

Compile the `zic` tool:
```shell
cd tzdb-<version>
make
```

Create the zoneinfo files:
```shell
zic -d ./zoneinfo southamerica northamerica factory europe etcetera backzone backward australasia asia antarctica africa
```

Replace the zoneinfo folder in `tool/timezone`.

Generate dart representation of TZDB:
```shell
dart run tool/timezone/generate_timezones.dart
```

Generate Windows bindings:
```shell
dart run tool/generate_windows_zones.dart
$ chmod +x tool/refresh.sh
$ tool/refresh.sh
```
16 changes: 8 additions & 8 deletions sugar/lib/src/time/zone/info/africa.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e2e2a79

Please sign in to comment.