Skip to content

Commit

Permalink
Fix test-gnc-timezone failure caused by latest zoneinfo release.
Browse files Browse the repository at this point in the history
See the comment for details.
  • Loading branch information
jralls committed Dec 26, 2020
1 parent 89af571 commit ae66da9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libgnucash/engine/test/gtest-gnc-timezone.cpp
Expand Up @@ -134,6 +134,13 @@ TEST(gnc_timezone_constructors, test_IANA_Belize_tz)
EXPECT_EQ(tz->dst_zone_abbrev(), "CDT");
EXPECT_EQ(tz->dst_offset().total_seconds(), 3600);
}
/* An IANA update on 22 Dec 2020 added missing DST transitions
* for Belize between 1943 and 1967. Ignore those years until
* the oldest supported OS version release is later than that
* because distros updating of zoneinfo is spotty.
*/
else if (year >= 1943 && year <= 1967)
continue;
else
{
EXPECT_EQ(tz->std_zone_abbrev(), "CST");
Expand Down

0 comments on commit ae66da9

Please sign in to comment.