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
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:18:24 +0300
commit4837f6bc11a5fe8fc760e38662f055d63ce97b1d (patch)
tree7b838b24762bbebdc2a17d7782b1605760e822af /library/cpp/timezone_conversion/ut/convert_ut.cpp
parentab692fec49f26ed84c1b7c536f7c861a09791c24 (diff)
downloadydb-4837f6bc11a5fe8fc760e38662f055d63ce97b1d.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));
+ }
+}