Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [Ocean] Set the default timezone to UTC #120

Open
1 task done
Tankilevitch opened this issue Sep 4, 2023 · 0 comments
Open
1 task done

[Feature] [Ocean] Set the default timezone to UTC #120

Tankilevitch opened this issue Sep 4, 2023 · 0 comments
Labels
enhancement New feature or request integration A change in integration files

Comments

@Tankilevitch
Copy link
Contributor

Motivation

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:

Screen Shot 2023-09-04 at 18 41 41

Screen Shot 2023-09-04 at 18 43 19

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

Screen Shot 2023-09-04 at 18 47 14

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!
@Tankilevitch Tankilevitch added enhancement New feature or request integration A change in integration files labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integration A change in integration files
Projects
None yet
Development

No branches or pull requests

1 participant