Debian buster show wrong date format

Kernels & Hardware, configuring network, installing services

Re: Debian buster show wrong date format

Postby kdillen » 2019-07-30 13:20

trinidad wrote:https://github.com/Powerlevel9k/powerlevel9k#time

TC


Thank you for your imput. But I am sure it is not related to the powerline configuration. In that case I should have the same problem in Stretch. My systems and configurations are kept inline using ansible so both stretch as buster have the same powerline configuration and I not use the Powerlevel9k theme .
kdillen
 
Posts: 11
Joined: 2019-07-30 08:33

Re: Debian buster show wrong date format

Postby kdillen » 2019-07-30 13:23

for now I have a temporary fix:

Code: Select all
root  /  var  log  export LC_TIME="en_IE.UTF-8"
-bash: warning: setlocale: LC_TIME: cannot change locale (en_IE.UTF-8): No such file or directory
root  /  var  log  date
Tue Jul 30 16:03:55 CEST 2019
root  /  etc  locale -a
C
C.UTF-8
en_IE.utf8
en_US.utf8
 1 export LC_TIME="en_IE.UTF-8"
POSIX
root  /  etc  locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
 root  /  etc  date
Tue Jul 30 16:05:36 CEST 2019
  blackcobra  root  /  etc 
kdillen
 
Posts: 11
Joined: 2019-07-30 08:33

Re: Debian buster show wrong date format

Postby L_V » 2019-07-30 13:23

Some mystery .... sometimes

Expected output: Tue Jul 30 11:30:36 CEST 2019
Is this what you want, or close to ?
Code: Select all
date +%c

If your problem in the date format in script, I wonder if this kind of format is not more relevant like
Code: Select all
date +%Y%m%d-%H:%M
+
Code: Select all
man date

May be a date string to export.
I cannot do more. Sorry.
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Debian buster show wrong date format

Postby kdillen » 2019-07-30 13:30

L_V wrote:Some mystery .... sometimes

Expected output: Tue Jul 30 11:30:36 CEST 2019
Is this what you want, or close to ?
Code: Select all
date +%c

If your problem in the date format in script, I wonder if this kind of format is not more relevant like
Code: Select all
date +%Y%m%d-%H:%M
+
Code: Select all
man date

May be a date string to export.
I cannot do more. Sorry.


Well I have for me the workaround. I use now an export to set this "LC_TIME=en_IE.UTF-8" when I login. But in the end it should get fixed at some other level. I am not even sure if I had this problem when I was running buster when it was still in testing phase.

I hope they fix it. But my work around helps me at least.
kdillen
 
Posts: 11
Joined: 2019-07-30 08:33

Re: Debian buster show wrong date format

Postby L_V » 2019-07-30 14:13

kdillen wrote:I hope they fix it.
Sorry but behavior of Buster seems more logical.
Can only be fixed what is clearly identified as a "bug". Check buglist, who knows.
Or ... re-investigate your scripts.... (=> convert date to something more consistent like date +%Y%m%d-%H:%M )
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Debian buster show wrong date format

Postby Soul Singin' » 2019-07-30 14:40

kdillen wrote:So it seems related to the locale settings. But then the big problem is to find one that works for Belgium and is in English
Soul Singin' wrote:
Code: Select all
# dpkg-reconfigure locales
User avatar
Soul Singin'
 
Posts: 1583
Joined: 2008-12-21 07:02

Previous

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable