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
-
Hi @kc_2466 ,
We'll Add support for LC_TIME environment variable & user setting via PG-3054 in an upcoming maintenance release -- p[robably not this week's, but in the next or following.
Thanks,
Alana