From acb46f8b36e1f0f0ead430fb76d4d077a72a8683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 9 Feb 2022 19:38:17 +0400 Subject: [PATCH] glib/tests: add comment about %Z strftime on w32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- glib/tests/date.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/glib/tests/date.c b/glib/tests/date.c index 15aacf9ee..87f4c2da0 100644 --- a/glib/tests/date.c +++ b/glib/tests/date.c @@ -801,8 +801,13 @@ test_strftime (void) g_assert_cmpstr (buf, ==, strftime_checks[i].expect); } - /* Time zone is too versatile on OS_WIN32 to be checked precisely */ #ifdef G_OS_WIN32 + /* + * Time zone is too versatile on OS_WIN32 to be checked precisely, + * According to msdn: "Either the locale's time-zone name + * or time zone abbreviation, depending on registry settings; no characters + * if time zone is unknown". + */ g_assert_cmpint (g_date_strftime (buf, sizeof (buf), "%Z", d), !=, 0); #endif