-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
time formats are US specific #1439
Comments
... actually, changing GINKGO_TIME_FORMAT, doesnt resolve the issue so I don't know what the real fix is. |
heyo sorry for the delay. Changing I have a quick fix that will let you set a |
Hi @onsi , yeah you have a point about the impact that chaning the format might have on downstream services and I would never expect you to release a breaking change. I do like the idea of the environment variable, that would be great. Actually when I tested modifying PS: no worries about the delay, I never expect immediate responses as you're running a well respected, well used and a great project and I know you must be busy juggling many interests. |
I've added support for GINKGO_TIME_FORMAT as an env variable and will cut a release soon. |
This is a minor issue, but if you are used to time formats other than US, this can become a little grating, eg:
The time displayed as '07/30/24 09:38:45.261' is a bit irritating. I'm not particluarly against seeing date/times in US format. The irritating part is the ambiguity. Now I know the example date I've used here is not ambiguous, but August is upon us and we'll be back to ambigupus dates that makes this issue more acute.
I wouldn't be averse to seeing a date shown in US format Jul 30 2024 (non ambiguous), but it would be great if either a universal time format was used or the time display was related to the user's locale or indeed could be controlled by the user via an environment variable.
I noticed that GINKGO_TIME_FORMAT defined in ginkgo/types is defined as:
so the quickess solution would be just to change this to reference one of the predefined time formats in the time package, but the better solution would be create the format from the locale or via environment variable override.
The text was updated successfully, but these errors were encountered: