Closed chuckn246 closed 3 months ago
For a relevant reference to the "tm" struct see e.g. https://cplusplus.com/reference/ctime/tm/
... the point being that tm_mon is an offset, with January corresponding to 0.
Gotcha, thanks!
I was caught off guard since other values such as day of month doesn't start at zero.
I'll go ahead and close this then :)
Describe the bug When using strptime, the month is displayed as
-1
of input while all other fields match the input values.The potential bug is is displayed in the example as well: https://jqlang.github.io/jq/manual/#dates
To Reproduce
Expected behavior Expect the month digit in the array to match the month from the input.
Environment: System one:
System two:
Additional context N/A