summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-24 13:33:19 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-25 18:39:36 +0000
commit1f051a8e25c758c99bbd905b58b46537665b6e9a (patch)
tree5e7feb62fe2bf2d7d02870ed055dd328718beba8 /Tests
parent7103012c7d447c1ba3d18597b086ae868661f82e (diff)
downloadserenity-1f051a8e25c758c99bbd905b58b46537665b6e9a.zip
LibTimeZone: Handle time zones which begin the year in daylight savings
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibTimeZone/TestTimeZone.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/LibTimeZone/TestTimeZone.cpp b/Tests/LibTimeZone/TestTimeZone.cpp
index f164db103b..27f9e0e977 100644
--- a/Tests/LibTimeZone/TestTimeZone.cpp
+++ b/Tests/LibTimeZone/TestTimeZone.cpp
@@ -147,6 +147,11 @@ TEST_CASE(get_time_zone_offset_with_dst)
test_offset("Europe/Moscow"sv, -1596412800, offset(+1, 4, 31, 19), Yes); // Sunday, June 1, 1919 12:00:00 AM
test_offset("Europe/Moscow"sv, -1592611200, offset(+1, 4, 00, 00), Yes); // Tuesday, July 15, 1919 12:00:00 AM
test_offset("Europe/Moscow"sv, -1589068800, offset(+1, 3, 00, 00), No); // Monday, August 25, 1919 12:00:00 AM
+
+ // Paraguay begins the year in DST.
+ test_offset("America/Asuncion"sv, 1642558528, offset(-1, 3, 00, 00), Yes); // Wednesday, January 19, 2022 2:15:28 AM
+ test_offset("America/Asuncion"sv, 1663553728, offset(-1, 4, 00, 00), No); // Monday, September 19, 2022 2:15:28 AM
+ test_offset("America/Asuncion"sv, 1671453238, offset(-1, 3, 00, 00), Yes); // Monday, December 19, 2022 12:33:58 PM
}
TEST_CASE(get_named_time_zone_offsets)