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

[Bug] jsonpath convert datetime string with en-US culture datetime formatter #5129

Closed
shiena opened this issue Aug 29, 2022 · 1 comment · Fixed by #5162
Closed

[Bug] jsonpath convert datetime string with en-US culture datetime formatter #5129

shiena opened this issue Aug 29, 2022 · 1 comment · Fixed by #5162
Labels

Comments

@shiena
Copy link
Contributor

shiena commented Aug 29, 2022

Bug Report

Current Behavior

Getting the https://api.github.com/repos/akiyosi/goneovim/releases/tags/nightly with jsonpath $.assets[?(@.name=='goneovim-windows.zip')].updated_at returns 8/21/2022 4:19:49 AM instead of 2022-08-21T04:19:49Z

Expected Behavior

jsonpath should return 2022-08-21T04:19:49Z without conversion

Additional context/output

This is because the github action container runs in the en-US culture.

Possible Solution

If you set InvariantCulture to CurrentCulture, it will not be converted, so it will be solved.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 7.2.6

Scoop Configuration

{
  "lastupdate": "2022-08-29T03:03:07.7136108+09:00",
  "SCOOP_REPO": "https://github.com/lukesampson/scoop",
  "SCOOP_BRANCH": "master"
}
@rashil2000
Copy link
Member

Hi! Can you make a PR for the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants