Actually fix the strptime tests

This has been a complicated issue to fix for a number of reasons.
The core of it is that the behavior is different between different
versions of macOS, some of which set possible-but-incorrect values.

This commit addresses the issue by always using our computation for
tm_wday and tm_yday on macOS. As a side-effect, strptime format
strings that specify %u and %j will no longer work on macOS.
This commit is contained in:
William Langford committed 2017-11-29 20:47:56 -05:00
1 parent 476b36770d
commit 0c9eacedaa
3 files changed
+18 -3

No files matched your search

+2 -1
View File
@@ -1933,7 +1933,8 @@ sections:
8601 datetime is `"%Y-%m-%dT%H:%M:%SZ"`.
jq may not support some or all of this date functionality on
some systems.
some systems. In particular, the `%u` and `%j` specifiers for
`strptime(fmt)` are not supported on macOS.
examples:
- program: 'fromdate'