Skip to content

Commit 3c5ceac

Browse files
authored
jq.test: drop non-portable %F test (#3365)
%F is a non-portable GNU extension, not supported by all strptime implementations (for example musl's).
1 parent b9e19de commit 3c5ceac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/jq.test

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,10 +1848,6 @@ try ["OK", strflocaltime({})] catch ["KO", .]
18481848
"2015-03-05T23:51:47Z"
18491849
[[2015,2,5,23,51,47,4,63],1425599507]
18501850

1851-
[strptime("%FT%T")|(.,mktime)]
1852-
"2025-06-07T08:09:10"
1853-
[[2025,5,7,8,9,10,6,157],1749283750]
1854-
18551851
# Check day-of-week and day of year computations
18561852
# (should trip an assert if this fails)
18571853
last(range(365 * 67)|("1970-03-01T01:02:03Z"|strptime("%Y-%m-%dT%H:%M:%SZ")|mktime) + (86400 * .)|strftime("%Y-%m-%dT%H:%M:%SZ")|strptime("%Y-%m-%dT%H:%M:%SZ"))

0 commit comments

Comments
 (0)