aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/timezone_conversion/ut/convert_ut.cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-02-06 18:23:16 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-02-06 18:55:07 +0300
commit965d041b92ef23a4a6b47046e881bace557570c5 (patch)
tree1732fb1d68a77e09a7cec2bc7b2e44466aad9837 /library/cpp/timezone_conversion/ut/convert_ut.cpp
parent420c349c8367feade209024495eea1acfdd5a6be (diff)
downloadydb-965d041b92ef23a4a6b47046e881bace557570c5.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/timezone_conversion/ut/convert_ut.cpp')
-rw-r--r--library/cpp/timezone_conversion/ut/convert_ut.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/library/cpp/timezone_conversion/ut/convert_ut.cpp b/library/cpp/timezone_conversion/ut/convert_ut.cpp
index bbf9e9b826..707b14ef60 100644
--- a/library/cpp/timezone_conversion/ut/convert_ut.cpp
+++ b/library/cpp/timezone_conversion/ut/convert_ut.cpp
@@ -202,3 +202,20 @@ TEST(TimeZoneConversion, TestBaikonur) {
ZonedTm(+5, false, 2019, 1, 11, 23, 55, 23),
ToCivilTime(TInstant::Seconds(1547232923), baikonur));
}
+
+TEST(TimeZoneConversion, DEVTOOLSSUPPORT_41537) {
+ // https://mm.icann.org/pipermail/tz-announce/2024-February/000081.html:
+ // Kazakhstan unifies on UTC+5 beginning 2024-03-01
+ // Asia/Almaty and Asia/Qostanay [...] will transition from UTC+6
+ // on 2024-03-01 at 00:00 to join the western portion
+
+ // > TZ=UTC date --date="2024-03-04 12:34:56" +%s
+ // 1709555696
+ const auto tmAfterTransition = TInstant::Seconds(1709555696);
+ for (const auto* tzName : {"Asia/Almaty", "Asia/Qostanay"}) {
+ const auto tz = GetTimeZone(tzName);
+ CompareCivilTimes(
+ ZonedTm(+5, false, 2024, 3, 4, 17, 34, 56),
+ ToCivilTime(tmAfterTransition, tz));
+ }
+}