[libcxx-commits] [libcxx] [libc++] Fixes time formatter test output for Linux on PowerPC (PR #75526)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 15 08:37:23 PST 2024


================
@@ -821,7 +821,9 @@ static void test_valid_values_date_time() {
   // Use the global locale (fr_FR)
   check(
 // https://sourceware.org/bugzilla/show_bug.cgi?id=24054
-#if defined(__GLIBC__) && __GLIBC__ <= 2 && __GLIBC_MINOR__ < 29
+#if defined(__powerpc__) && defined(__linux__)
+      SV("%c='jeu. 01 janv. 1970 00:00:00 UTC'\t%Ec='jeu. 01 janv. 1970 00:00:00 UTC'\n"),
----------------
mordante wrote:

Actually this clock should always have UTC at timezone, this GMT is wrong too.
[[time.format]/12](http://eel.is/c++draft/time.format#12)
```
Remarks: If %Z is used, it is replaced with STATICALLY-WIDEN<charT>("UTC").
```

https://github.com/llvm/llvm-project/pull/75526


More information about the libcxx-commits mailing list