# # # patch "unit-tests/dates.cc" # from [d33c41f5779d6f127316589989c563a09e5892ac] # to [74f29b99fdfc27276163c3d7712a0686951cf0ae] # ============================================================ --- unit-tests/dates.cc d33c41f5779d6f127316589989c563a09e5892ac +++ unit-tests/dates.cc 74f29b99fdfc27276163c3d7712a0686951cf0ae @@ -297,7 +297,7 @@ UNIT_TEST(localtime_formats) OK(date, "%X %Y-%m-%d"); // hh:mm:ss YYYY-MM-DD OK(date, "%d %b %Y, %I:%M:%S %p"); OK(date, "%a %b %d %H:%M:%S %Y"); - OK(date, "%a %d %b %Y %I:%M:%S %p %z"); + OK(date, "%a %d %b %Y %I:%M:%S %p"); OK(date, "%a, %d %b %Y %H:%M:%S"); OK(date, "%Y-%m-%d %H:%M:%S"); OK(date, "%Y-%m-%dT%H:%M:%S"); @@ -308,8 +308,13 @@ UNIT_TEST(localtime_formats) OK(date, "%X %x"); // hh:mm:ss YY-MM-DD } + // both, %F and %z, are GNU extensions which we cannot test here + // universally, because e.g. openBSD doesn't know them + //OK(date, "%F %X"); // YYYY-MM-DD hh:mm:ss + //OK(date, "%a %d %b %Y %I:%M:%S %p %z"); + // possibly anything with a timezone label (%Z) will fail - //(date, "%a %d %b %Y %I:%M:%S %p %Z"); // the timezone label breaks this + //OK(date, "%a %d %b %Y %I:%M:%S %p %Z"); // the timezone label breaks this } // check that trailing characters not matched by the date format are caught