docker-qbittorrentvpn icon indicating copy to clipboard operation
docker-qbittorrentvpn copied to clipboard

Ability to change the date format

Open shalak opened this issue 2 years ago • 1 comments

Currently, I'm seeing the date in the following format: 4/9/2023, 6:18:56 PM

From what I see only POSIX locales are installed in the container:

# locale -a
C
C.UTF-8
POSIX

Would be great to have a possibility to change it to something else via the LC_TIME env variable.

shalak avatar Apr 09 '23 17:04 shalak

I believe, this should do the trick, right?

diff --git a/Dockerfile b/Dockerfile
index d2dcd12..4ceb79f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -128,6 +128,8 @@ RUN apt update \
     && apt install -y --no-install-recommends \
     build-essential \
     ca-certificates \
+    locales \
+    locales-all \
     curl \
     git \
     jq \

shalak avatar Apr 09 '23 17:04 shalak