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
While playing around with jq I experienced inconsistent behavior for when I ran the jq query in https://jqplay.org/ vs when I ran it on my machine.
This inconsistency happens when working with dates.
Example:
As you can see with the same input and jq query I get different output.
The jq manual states that:
Low-level jq interfaces to the C-library time functions are also provided: strptime, strftime, strflocaltime, mktime, gmtime, and localtime. Refer to your host operating system's documentation for the format strings used by strptime and strftime. Note: these are not necessarily stable interfaces in jq, particularly as to their localization functionality.
Proposed Changes
Setting the environment variable TZ to UTC solves that issue
I think that ocean framework should be set to UTC by default and support overrides.
Are you willing to submit a PR?
I'm willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Motivation
While playing around with
jq
I experienced inconsistent behavior for when I ran thejq
query in https://jqplay.org/ vs when I ran it on my machine.This inconsistency happens when working with dates.
Example:
As you can see with the same input and
jq
query I get different output.The
jq
manual states that:Proposed Changes
Setting the environment variable
TZ
toUTC
solves that issueI think that ocean framework should be set to UTC by default and support overrides.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: