You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[ignore = "https://github.com/uutils/coreutils/issues/11656 — GNU date strips the `O` strftime modifier in C locale (e.g. `%Om` -> `%m`); uutils leaks it as literal `%om`."]
1969
1968
fntest_date_strftime_o_modifier(){
1970
1969
// In C locale the `O` modifier is a no-op (alternative numeric symbols).
1971
1970
// GNU renders `%Om` as `06` for June; uutils renders it as the literal `%Om`.
// In C locale the `E` modifier is a no-op (alternative era).
1984
+
// GNU does not render `%Em`; uutils renders it as the literal `%Em` as `06` for June.
1985
+
new_ucmd!()
1986
+
.env("LC_ALL","C")
1987
+
.env("TZ","UTC")
1988
+
.arg("-d")
1989
+
.arg("2024-06-15")
1990
+
.arg("+%Em-%Ey-%El")
1991
+
.succeeds()
1992
+
.stdout_is("06-24-12\n");
1993
+
}
1994
+
1982
1995
#[test]
1983
1996
#[ignore = "https://github.com/uutils/parse_datetime/issues/280 — GNU date accepts bare timezone abbreviations (UT, GMT, ...) meaning `now in that TZ`; parse_datetime rejects them."]
0 commit comments