Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Setting Date format - with ProGet running under Docker
-
I would like to change the date display format within the ProGet UI - either to British (dd/mm/yyyy) or better still ISO-8601 (yyyy-mm-dd).
I've found from an earlier thread that ProGet uses the systems locale settings - but we are using ProGet running on Docker - and there doesn't appear to be any locales available within the ProGet docker container. I've tried setting the environment variable LC_TIME, but it doesn't work - probably due to the locale i've specified not existing in the container.
Any ideas how to resolve this?
-
I've made a bit of progress on this problem. I've now moved up to ProGet 2025.3 - and the image now does have lots of locales available (maybe they were there before, but I hadn't discovered how to enable them).
To enable specific locales it is necessary, it seems, to uncomment the appropriate lines in /etc/locale.gen, and run the locale-gen command.
It's then possible to set LC_TIME to this locale, and now when you send the date command it is formatted in the selected locale.To achieve this i've added the following to my docker-compose.yml:
entrypoint: sh -c "sed -i 's/# en_DK/en_DK/' /etc/locale.gen && locale-gen && /entrypoint.sh" environment: LC_TIME: "en_DK.utf8"However - having done all that - The ProGet UI doesn't actually format the dates in the system locale of the container.
-
Hi @kc_2466,
I just wanted to clarify Dan's comment a bit. The tz environment variable sets the timezone used in the container and time zone in the user config will only set the time zone to use in the UI, not the format of the date. Setting LC_TIME will change the locale within the Docker container and format it at the OS level, it doesn't look like that will be picked up in the .NET side of things. This is something I will need to discuss with the team internally. We have a team meeting on Monday (EST) of next week and I should have an update for you on the following Tuesday.
Thanks,
Rich -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login