[PLUG] Date format Raspberry Pi

Chuck Hast wchast at gmail.com
Tue Aug 11 12:21:04 UTC 2020


This is raspbian, and it has the locale.gen file in there, it has selected
en_US.UTF-8 UTF-8

But I need finer granularity than that. But there is no locale.conf file
which is where you do fine changes to the locale.

It appears that they have changed things, if I do a locale command
I can of course see all of the settings:
pi at tempest01:/etc $ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"    <<<<<<< This is the one I need to change
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=en_US.UTF-8

But I have looked for where to change that and since there
is no locale.conf file not sure.

Going out of town so will not be working on this for a few
days.

On Tue, Aug 11, 2020 at 1:52 AM Tomas Kuchta <tomas.kuchta.lists at gmail.com>
wrote:

> Try /etc/locale.gen
> If it does not exist - create it.
>
> Lxde time format is in:
> ~/.config/lxpanel/LXDE-pi/panels/panel
>
> Variable:
> ClockFmt
>
> Tomas
>
> On Mon, Aug 10, 2020, 22:19 Chuck Hast <wchast at gmail.com> wrote:
>
> > looked for a locale.conf but no joy. I can see that LOCALE_Time
> > sets the date command to give 12 hour time but not sure how to
> > set it as appears that the latest Raspbian assumes that all in USA
> > want to run 12 hour time.
> >
> > On Mon, Aug 10, 2020 at 11:39 PM Chuck Hast <wchast at gmail.com> wrote:
> >
> > > I tried raspi-config but got nothing, I wonder if they have tied
> > > it to the locale, and set it to 12 hours vice 24.
> > >
> > > I will check the LC_ALL and LC_TIME
> > >
> > >
> > > On Mon, Aug 10, 2020 at 11:22 PM Linh Pham <
> > > question+pdxlinux at closedsrc.org> wrote:
> > >
> > >> If you're using Raspbian or Raspberry Pi OS, I think that's
> configurable
> > >> through raspi-config. Otherwise, I think it can be set through either
> > >> the LC_ALL and/or LC_TIME environment variables.
> > >>
> > >> On 2020-08-10 22:39 -0500, Chuck Hast <wchast at gmail.com> wrote:
> > >>
> > >> > Folks,
> > >> > I have several RPi's all but one show the date format as
> > >> > follows:
> > >> > Mon Aug 10 22:29:53 CDT 2020
> > >> >
> > >> > But I have one that shows it in 12 hour format (which I
> > >> > detest but that is another subject)
> > >> > Mon 10 Aug 2020 10:30:45 PM CDT
> > >> >
> > >> > I see the date command and the different options, but
> > >> > I cannot figure out where they are being implemented such
> > >> > that all but one show 24 hour time and the one 12 hour
> > >> > time. I assume that it is in a config file, I have looked at
> > >> > the locale files to see if it was there but no joy.
> > >> >
> > >> > --
> > >> >
> > >> > Chuck Hast  -- KP4DJT --
> > >> > I can do all things through Christ which strengtheneth me.
> > >> > Ph 4:13 KJV
> > >> > Todo lo puedo en Cristo que me fortalece.
> > >> > Fil 4:13 RVR1960
> > >> > _______________________________________________
> > >> > PLUG: https://pdxlinux.org
> > >> > PLUG mailing list
> > >> > PLUG at pdxlinux.org
> > >> > http://lists.pdxlinux.org/mailman/listinfo/plug
> > >> >
> > >>
> > >> --
> > >> Linh Pham
> > >> _______________________________________________
> > >> PLUG: https://pdxlinux.org
> > >> PLUG mailing list
> > >> PLUG at pdxlinux.org
> > >> http://lists.pdxlinux.org/mailman/listinfo/plug
> > >>
> > >
> > >
> > > --
> > >
> > > Chuck Hast  -- KP4DJT --
> > > I can do all things through Christ which strengtheneth me.
> > > Ph 4:13 KJV
> > > Todo lo puedo en Cristo que me fortalece.
> > > Fil 4:13 RVR1960
> > >
> > >
> >
> > --
> >
> > Chuck Hast  -- KP4DJT --
> > I can do all things through Christ which strengtheneth me.
> > Ph 4:13 KJV
> > Todo lo puedo en Cristo que me fortalece.
> > Fil 4:13 RVR1960
> > _______________________________________________
> > PLUG: https://pdxlinux.org
> > PLUG mailing list
> > PLUG at pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> _______________________________________________
> PLUG: https://pdxlinux.org
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>


-- 

Chuck Hast  -- KP4DJT --
I can do all things through Christ which strengtheneth me.
Ph 4:13 KJV
Todo lo puedo en Cristo que me fortalece.
Fil 4:13 RVR1960



More information about the PLUG mailing list