Skip to content

Commit 68756d2

Browse files
committed
zchk-time: Fix fails of sb_add_localtime_iso8601(_msec) tests.
These tests used the "Asia/Katmandu" timezone... that is apparently a typo for "Asia/Kathmandu" (which is the correct timezone name). The former apparently still existed for backward-compatibility reasons, but was deprecated on some recent systems. Fix the tests by using the correct spelling. Change-Id: Ied2308d7712d7d6c3912b3c897b0163599d9ce06 Priv-Id: c9a6b2b7137312f259022bf8ec786867bcc8a0e5
1 parent 886f6f4 commit 68756d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/zchk-time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Z_GROUP_EXPORT(time)
352352
Z_ASSERT_STREQUAL(sb.data, "2012-07-12T13:20:30+03:00");
353353

354354
sb.len = 0;
355-
sb_add_localtime_iso8601(&sb, ts, ":Asia/Katmandu");
355+
sb_add_localtime_iso8601(&sb, ts, ":Asia/Kathmandu");
356356
Z_ASSERT_STREQUAL(sb.data, "2012-07-12T16:05:30+05:45");
357357

358358
sb.len = 0;
@@ -382,7 +382,7 @@ Z_GROUP_EXPORT(time)
382382
Z_ASSERT_STREQUAL(sb.data, "2012-07-12T13:20:30.123+03:00");
383383

384384
sb.len = 0;
385-
sb_add_localtime_iso8601_msec(&sb, ts, 123, ":Asia/Katmandu");
385+
sb_add_localtime_iso8601_msec(&sb, ts, 123, ":Asia/Kathmandu");
386386
Z_ASSERT_STREQUAL(sb.data, "2012-07-12T16:05:30.123+05:45");
387387

388388
sb.len = 0;

0 commit comments

Comments
 (0)