[arch-general] Time and date in 24 hour time can this be fixed?
Hi all, I am using arch linux with orca and mate desktop and have a strange problem or bug or something and was wondering if there was a way to fix it or work around it. I am using the America/New_York time zone so my time shows correctly at least according to orca. Orca gives me the time in 12 Hour format which is what I want, but when I look at an email such as in thunderbird, the time and date are given 24 hour format for example, 2019/14/09 11:00 rather than the u.s format I am used to. I read through the arch wiki and could not find anything on how to change the time format on the clock. Any ideas on how to change this? HW clock is set to UTC if that has anything to do with it. I tried to set it to locale time, but that messed up the system clock so had to switch it back. Thanks all. BTW, if this is sooted better for the orca list please let me know/. Thanks again all. Matthew
Hi Matthew,
when I look at an email such as in thunderbird, the time and date are given 24 hour format for example, 2019/14/09 11:00 rather than the u.s format I am used to.
What is the output of the locale(1) command? Also, this page may be of help. http://kb.mozillazine.org/Change_the_Date_Format#Configuring_the_date.2Ftime... -- Cheers, Ralph.
I am getting a sintax error when runn locale(1). Locale is set to en_US.UTF-8 in /etc/locale.gebn. At least it is uncommeted. Should I rerun the locale.-gen and see if that helps. Matthew On 2019-09-14 11:19, Ralph Corderoy wrote:
Hi Matthew,
when I look at an email such as in thunderbird, the time and date are given 24 hour format for example, 2019/14/09 11:00 rather than the u.s format I am used to. What is the output of the locale(1) command? Also, this page may be of help. http://kb.mozillazine.org/Change_the_Date_Format#Configuring_the_date.2Ftime...
On Sat, 14 Sep 2019 11:56:46 -0400, Matthew Dyer via arch-general wrote:
I am getting a sintax error when runn locale(1). Locale is set to en_US.UTF-8 in /etc/locale.gebn. At least it is uncommeted. Should I rerun the locale.-gen and see if that helps.
Hi Matthew, if I were you I would replace /etc/locale.gen by /etc/locale.gen.pacnew, uncomment the desired language/s, just in case also take a look at /etc/locale.conf and then run 'sudo locale-gen'. To get back 24 hour format (that's what I prefer over 12 hour format), I restarted my machine, https://wiki.archlinux.org/index.php/Locale#LC_TIME:_date_and_time_format . You might not necessarily need to restart the machine, but it doesn't harm. The output of 'localectl status' does not display the real status! However, running 'locale; echo $?; locale -a; echo $?' must not cause a syntax error, 'locale' must always return exit status '0' ;). Regards, Ralf
Thanks. Will give this a try. Matthew
On Sep 14, 2019, at 1:42 PM, Ralf Mardorf via arch-general <arch-general@archlinux.org> wrote:
On Sat, 14 Sep 2019 11:56:46 -0400, Matthew Dyer via arch-general wrote:
I am getting a sintax error when runn locale(1). Locale is set to en_US.UTF-8 in /etc/locale.gebn. At least it is uncommeted. Should I rerun the locale.-gen and see if that helps.
Hi Matthew,
if I were you I would replace /etc/locale.gen by /etc/locale.gen.pacnew, uncomment the desired language/s, just in case also take a look at /etc/locale.conf and then run 'sudo locale-gen'.
To get back 24 hour format (that's what I prefer over 12 hour format), I restarted my machine, https://wiki.archlinux.org/index.php/Locale#LC_TIME:_date_and_time_format .
You might not necessarily need to restart the machine, but it doesn't harm. The output of 'localectl status' does not display the real status!
However, running 'locale; echo $?; locale -a; echo $?' must not cause a syntax error, 'locale' must always return exit status '0' ;).
Regards, Ralf
For us command line users the date command has lots of parameters, and bash can do aliases to save a date and/or time format you like when you get it just right. The info date command get anyone interested started. On Sat, 14 Sep 2019, matthew dyer via arch-general wrote:
Date: Sat, 14 Sep 2019 13:56:06 From: matthew dyer via arch-general <arch-general@archlinux.org> To: Arch General <arch-general@archlinux.org> Cc: matthew dyer <ilovecountrymusic483@gmail.com> Subject: Re: [arch-general] Time and date in 24 hour time can this be fixed?
Thanks. Will give this a try.
Matthew
On Sep 14, 2019, at 1:42 PM, Ralf Mardorf via arch-general <arch-general@archlinux.org> wrote:
On Sat, 14 Sep 2019 11:56:46 -0400, Matthew Dyer via arch-general wrote:
I am getting a sintax error when runn locale(1). Locale is set to en_US.UTF-8 in /etc/locale.gebn. At least it is uncommeted. Should I rerun the locale.-gen and see if that helps.
Hi Matthew,
if I were you I would replace /etc/locale.gen by /etc/locale.gen.pacnew, uncomment the desired language/s, just in case also take a look at /etc/locale.conf and then run 'sudo locale-gen'.
To get back 24 hour format (that's what I prefer over 12 hour format), I restarted my machine, https://wiki.archlinux.org/index.php/Locale#LC_TIME:_date_and_time_format .
You might not necessarily need to restart the machine, but it doesn't harm. The output of 'localectl status' does not display the real status!
However, running 'locale; echo $?; locale -a; echo $?' must not cause a syntax error, 'locale' must always return exit status '0' ;).
Regards, Ralf
--
On Sat, 14 Sep 2019 14:30:52 -0400, Jude DaShiell wrote:
For us command line users the date command has lots of parameters, and bash can do aliases to save a date and/or time format you like when you get it just right. The info date command get anyone interested started.
Hi, LC_TIME is important for a lot of commands, e.g. such as the download utilities used by makepkg: [rocketmouse@archlinux linux-rt-pussytoes]$ makepkg -s ==> Making package: linux-rt-pussytoes 5.2.14_rt7-0 (Sat 14 Sep 2019 21:51:30 CEST) [snip]^C ==> ERROR: Aborted by user! Exiting... ;) Regards, Ralf
On 9/14/19 11:19 AM, Ralph Corderoy wrote:
when I look at an email such as in thunderbird, the time and date are given 24 hour format for example, 2019/14/09 11:00 rather than the u.s format I am used to.
What is the output of the locale(1) command? Also, this page may be of help.
http://kb.mozillazine.org/Change_the_Date_Format#Configuring_the_date.2Ftime... According to RFC 2822, the time of day in an email message is always in 24-hour format. Changing your system settings can't and won't (and IMO shouldn't) change that. If anything, I think that you'll have to change something in Thunderbird. Dan
Hi. Problem fixed. I added lc time ends to locale.conf and now all is well. Sent from my iPad
On Sep 14, 2019, at 8:39 PM, Dan Sommers <2QdxY4RzWzUUiLuE@potatochowder.com> wrote:
On 9/14/19 11:19 AM, Ralph Corderoy wrote:
when I look at an email such as in thunderbird, the time and date are given 24 hour format for example, 2019/14/09 11:00 rather than the u.s format I am used to.
What is the output of the locale(1) command? Also, this page may be of help. http://kb.mozillazine.org/Change_the_Date_Format#Configuring_the_date.2Ftime...
According to RFC 2822, the time of day in an email message is always in 24-hour format. Changing your system settings can't and won't (and IMO shouldn't) change that. If anything, I think that you'll have to change something in Thunderbird.
Dan
Hi Dan,
Also, this page may be of help. http://kb.mozillazine.org/Change_the_Date_Format#Configuring_the_date.2Ftime...
According to RFC 2822, the time of day in an email message is always in 24-hour format.
That's correct.
Changing your system settings can't and won't (and IMO shouldn't) change that. If anything, I think that you'll have to change something in Thunderbird.
There could be a setting in Thunderbird, but Thunderbird could, and does according to that URL, make use of its environment through the locale's time preferences, and that's what locale(1) shows. So the correct place to change this isn't necessary Thunderbird. -- Cheers, Ralph.
participants (6)
-
Dan Sommers
-
Jude DaShiell
-
Matthew Dyer
-
matthew dyer
-
Ralf Mardorf
-
Ralph Corderoy