LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2003, 10:17 AM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Unhappy Unable to choose a different date format


Dear friends,

I use RedHat 8.0, KDE Desktop, installation in English US language. Gnome is not installed.

In Mozilla e-mail try to get the dates in the format YY/MM/DD. I *must* have this, because the format MM/DD/YY is totally confusing to me.

This date format is used in Sweden, so a Swedish locale should do.

My installation uses LANG=en_US.UTF-8

According to Mozillia.org, I should enter
export LC_TIME =sv_SE
to get the date format right.

However, whatever setting I use for LC_TIME, it is not possible to get any other date format.

I am not sure this is a KDE problem. When I work in level 3, the output of the date command is:
[root@donald_pc /]# date +%x
10/15/03
Still wrong!

The output of the locale command is like this:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="sv_SE"
<cut>
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

When I issue the command locale -a, I ONLY see en_** locales, like:
[root@donald_pc /]# locale -a
C
en_AU
en_AU.utf8
en_BW
en_BW.utf8
etc
etc

However, in the /usr/share/i18n/locale directory the file sv_SE *is* present. I also tried to set LC_TIME to sv-SE.UTF-8, but to no avail.

So the questions are:

- Why do I only see en_** with the locale -a command?
- Why is it not possible to change the date format in text mode?
- Why can't I change the date format in KDE applicatons?

Help is highly appreciated

Hans Linkels
 
Old 10-15-2003, 05:50 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
export LC_TIME =sv_SE
Maybe it's just your typo, but a space slipped in before the equal sign.
if I do "export LC_TIME=sv_SE" "date +%x" shows YYYY-MM-DD format.
 
Old 10-16-2003, 07:11 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Ok, it was either a typo or I put the sv_SE between quotes (because all other environment variables are withing quotes). It works for me as well. Muy estupido!

For Mozilla, I made the error to enter the setting in a terminal window, but started Mozilla from the KDE shortcut. It is obvious that you should start Mozilla from the same terminal window as where the locale setting is entered. Muy, *muy* estupido!

Anyway, my problem is solved. Thanks for your support.

Hans
 
Old 12-17-2004, 11:30 PM   #4
rcgreenw
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 1
Posts: 1

Rep: Reputation: 0
If you speak english, you may want to use en_DK instead of sv_SE. The date format is the same, but the month and day strings are in english.
--Rich
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'date' command format Neorio Linux - General 3 01-18-2011 05:18 AM
Thunderbird Date Format dotancohen Linux - Software 9 10-15-2005 02:55 PM
Date format Mik LQ Suggestions & Feedback 8 12-05-2004 10:14 AM
MySQL date format mnauta Linux - General 2 05-13-2004 06:20 PM
All I want to do is change the date format... Slycordinator Linux - General 5 12-11-2003 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration