Skip to content

Commit 3ee151d

Browse files
authored
Merge pull request #121 from bxparks/develop
merge 2.3.2 into master
2 parents 373ce16 + 58ee9b0 commit 3ee151d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1261
-1228
lines changed

.github/workflows/validation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# manually.
2222
steps:
2323
- name: Checkout AceTime
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Checkout Additional Repos
2727
run: |
@@ -37,10 +37,10 @@ jobs:
3737
git clone --depth 1 https://github.com/bxparks/acetimepy
3838
git clone https://github.com/eggert/tz
3939
40-
- name: Set up Python 3.7
41-
uses: actions/setup-python@v2
40+
- name: Set up Python 3.10
41+
uses: actions/setup-python@v5
4242
with:
43-
python-version: '3.7'
43+
python-version: '3.10'
4444

4545
- name: Display Python version
4646
run: python -c "import sys; print(sys.version)"

CHANGELOG.md

Lines changed: 755 additions & 747 deletions
Large diffs are not rendered by default.

DEVELOPER.md

Lines changed: 45 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ library.
2727
* [Step 3: Fix Transition Times](#Step3FixTransitionTimes)
2828
* [Step 4: Generate Start Until Times](#Step4GenerateStartUntilTimes)
2929
* [Step 5: Calculate Abbreviations](#Step5CalculateAbbreviations)
30-
* [Upgrading ZoneInfo Files to a New TZDB Version](#UpgradingZoneInfoFiles)
30+
* [Upgrading TZDB](#UpgradingZoneInfoFiles)
3131
* [Release Process](#ReleaseProcess)
3232

3333
<a name="ProjectRepoDependency"></a>
@@ -792,7 +792,7 @@ field is a static array of 7 characters (to account for the terminating NUL
792792
character).
793793

794794
<a name="UpgradingZoneInfoFiles"></a>
795-
## Upgrading ZoneInfo Files to a New TZDB Version
795+
## Upgrading TZDB
796796

797797
About 2-4 times a year, a new TZDB version is released. Here are some notes
798798
(mostly for myself) on how to create a new release after a new TZDB version is
@@ -805,29 +805,48 @@ available.
805805
- `$ git pull`
806806
- Check that the correct tag is pulled (e.g. `2020c` tag if that's the
807807
version that we want to upgrade to).
808-
- Update the Hinnant date repo (https://github.com:HowardHinnant/date). This
808+
- Update the Hinnant `date` repo (https://github.com:HowardHinnant/date). This
809809
should be a sibling to the `AceTime` repo:
810810
- `$ cd ../date`
811811
- `$ git pull`
812812
- Update the zonedb files for `acetimepy` (needed by AcetzBasicTest and
813813
AcetzExtendedTest):
814-
- `$ cd acetimepy/src/acetime`
815-
- `$ vi zonedb*/Makefile`
814+
- `$ cd acetimepy`
815+
- `$ vi src/zonedb*/Makefile`
816816
- Update the `TZ_VERSION` variable in the various makefiles.
817817
- `$ make zonedbs`
818+
- `$ make all`
818819
- Update the zonedb files for `acetimec` (needed by AcetimecBasicTest and
819820
AcetimecExtendedTest)
820821
- `$ cd acetimec/src`
821822
- `$ vi zonedb*/Makefile`
822823
- Update the `TZ_VERSION` variable in the various makefiles.
823824
- `$ make zonedbs`
824825
- `$ make` to update the `acetimec.a` lib file
826+
- `$ cd ../tests`
827+
- `$ make -j2`
828+
- `$ make runtests`
829+
- Update the zonedb files for `acetimego`
830+
- `$ cd acetimego`
831+
- `$ vi zonedb*/Makefile`
832+
- Update the `TZ_VERSION` variable in the various makefiles.
833+
- `$ make zonedbs`
834+
- `$ make all`
835+
- `$ make test`
836+
- Update the zonedb files for `AceTime`:
837+
- `$ cd AceTime/src`
838+
- `$ vi zonedb*/Makefile`
839+
- Update the `TZ_VERSION` variable in the makefiles.
840+
- `$ make zonedbs`
841+
- `$ cd ../tests`
842+
- `$ make clean`
843+
- `$ make -j2 tests`
844+
- `$ make runtests`
825845
- Recompile the binaries in `AceTimeValidation` tools
826846
- `$ cd AceTimeValidation/tools`
827847
- `$ make clean`
828-
- `$ make`
829-
- Verify that `AceTimeValidation` passes. This compares AceTime with 3 other
830-
libraries: acetimec, acetimepy, and the Hinnant `date` library:
848+
- `$ make -j2`
849+
- Verify that `AceTimeValidation/tests` pass.
831850
- `$ cd AceTimeValidation/tests`
832851
- `$ make clean`
833852
- `$ vi {Acetimec,Acetz,Hinnant}{Basic,Extended}*/Makefile`
@@ -838,28 +857,32 @@ available.
838857
- `AcetzExtendedTest/Makefile`
839858
- `HinnantBasicTest/Makefile`
840859
- `HinnantExtendedTest/Makefile`
841-
- Validate against one library, acetimec:
842-
- `$ vi AcetimecExtendedTest/Makefile`
860+
- Validate against the other libraries:
861+
- `$ make -j2 tests`
862+
- `$ make runtests`
863+
- (Debugging) To validate against one library, e.g. acetimec:
843864
- `$ make -C AcetimecExtendedTest clean`
844865
- `$ make -C AcetimecExtendedTest all`
845866
- `$ make -C AcetimecExtendedTest run`
846-
- Validate against the other libraries:
847-
- `$ make clean`
848-
- `$ make -j4 tests`
849-
- `$ make runtests`
850-
- Update the various zoneinfo files for AceTime:
851-
- `$ cd AceTime/src`
852-
- `$ vi zonedb*/Makefile`
853-
- Update the `TZ_VERSION` variable in the makefiles.
854-
- `$ make zonedbs`
867+
- Verify that `AceTimeValidation/validation` passes.
868+
- `$ cd AceTimeValidation/validation`
869+
- `$ make clean`
870+
- `$ make -j2 validation`
855871
- Update CHANGELOGs
872+
- Copy a summary of the TZDB release notes from
873+
https://mm.icann.org/pipermail/tz-announce/ to the various CHANGELOG.md
874+
files.
856875
- AceTime/CHANGELOG.md
857876
- acetimec/CHANGELOG.md
877+
- acetimego/CHANGELOG.md
858878
- acetimepy/CHANGELOG.md
859879
- AceTimeValidation/CHANGELOG.md
860-
- Commit the changes to git
861-
- `$ git add ...`
862-
- `$ git commit -m "..."`
880+
- Commit and push the changes for the following repos:
881+
- AceTime
882+
- acetimec
883+
- acetimego
884+
- acetimepy
885+
- AceTimeValidation
863886

864887
There are 12 other validation tests in the AceTimeValidation project that
865888
compare AceTime with various other third party libraries:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ and the `zonedbc` database to support all timezones, for all transitions defined
7676
in the IANA TZ database (`[1844,2087]`), and extending the validity of timezone
7777
calculations from `[2000,10000)` to `[0001,10000)`.
7878

79-
**Version**: 2.3.1 (2024-01-12, TZDB version 2023d)
79+
**Version**: 2.3.2 (2024-07-25, TZDB version 2024a)
8080

8181
**Changelog**: [CHANGELOG.md](CHANGELOG.md)
8282

USER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The IANA TZ database is programmatically generated into 3 predefined databases:
1818
databases have different accuracy ranges, and are designed to work with
1919
different `ZoneProcessor` and `ZoneManager` classes.
2020

21-
**Version**: 2.3.1 (2024-01-12, TZDB 2023d)
21+
**Version**: 2.3.2 (2024-07-25, TZDB 2024a)
2222

2323
**Related Documents**:
2424

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AceTime
2-
version=2.3.1
2+
version=2.3.2
33
author=Brian T. Park <[email protected]>
44
maintainer=Brian T. Park <[email protected]>
55
sentence=Date, time, timezone classes for Arduino supporting the full IANA TZ Database to convert epoch seconds to date and time components in different time zones.

src/AceTime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#include "zonedbc/zone_registry.h"
7070

7171
// Version format: xxyyzz == "xx.yy.zz"
72-
#define ACE_TIME_VERSION 20301
73-
#define ACE_TIME_VERSION_STRING "2.3.1"
72+
#define ACE_TIME_VERSION 20302
73+
#define ACE_TIME_VERSION_STRING "2.3.2"
7474

7575
#endif

src/zonedb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TARGETS := zone_infos.cpp zone_infos.h zone_policies.cpp zone_policies.h
22

33
TOOLS := $(abspath ../../../AceTimeTools)
44
TZ_REPO := $(abspath $(TOOLS)/../tz)
5-
TZ_VERSION := 2023d
5+
TZ_VERSION := 2024a
66
START_YEAR := 2000
77
UNTIL_YEAR := 2200
88

src/zonedb/zone_infos.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// $ /home/brian/src/AceTimeTools/src/acetimetools/tzcompiler.py
44
// --input_dir /home/brian/src/AceTime/src/zonedb/tzfiles
55
// --output_dir /home/brian/src/AceTime/src/zonedb
6-
// --tz_version 2023d
6+
// --tz_version 2024a
77
// --action zonedb
88
// --language arduino
99
// --scope basic
@@ -23,7 +23,7 @@
2323
// northamerica
2424
// southamerica
2525
//
26-
// from https://github.com/eggert/tz/releases/tag/2023d
26+
// from https://github.com/eggert/tz/releases/tag/2024a
2727
//
2828
// Supported Zones: 446 (227 zones, 219 links)
2929
// Unsupported Zones: 150 (124 zones, 26 links)
@@ -85,7 +85,7 @@ namespace zonedb {
8585
// ZoneContext
8686
//---------------------------------------------------------------------------
8787

88-
static const char kVersionString[] ACE_TIME_PROGMEM = "2023d";
88+
static const char kVersionString[] ACE_TIME_PROGMEM = "2024a";
8989
const __FlashStringHelper* const kTzDatabaseVersion =
9090
(const __FlashStringHelper*) kVersionString;
9191

src/zonedb/zone_infos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// $ /home/brian/src/AceTimeTools/src/acetimetools/tzcompiler.py
44
// --input_dir /home/brian/src/AceTime/src/zonedb/tzfiles
55
// --output_dir /home/brian/src/AceTime/src/zonedb
6-
// --tz_version 2023d
6+
// --tz_version 2024a
77
// --action zonedb
88
// --language arduino
99
// --scope basic
@@ -23,7 +23,7 @@
2323
// northamerica
2424
// southamerica
2525
//
26-
// from https://github.com/eggert/tz/releases/tag/2023d
26+
// from https://github.com/eggert/tz/releases/tag/2024a
2727
//
2828
// Supported Zones: 446 (227 zones, 219 links)
2929
// Unsupported Zones: 150 (124 zones, 26 links)

0 commit comments

Comments
 (0)