View previous topic :: View next topic |
Author |
Message |
SirronD Tux's lil' helper
Joined: 05 Jun 2002 Posts: 100 Location: Oakland, CA
|
Posted: Thu Mar 09, 2006 7:42 pm Post subject: Clock calendar starts on Monday, not Sunday? |
|
|
How can I make the calendar in the gnome clock applet (Clock 2.12.3) start on Sunday, instead of Monday?
There used to be a very simple interface in the properties that lets you select the first day of the week but for some strange reason, that simple interface was removed.
Now I understand it is controled by locale.
contents of /etc/env.d/02locale
results of # locale -k -c LC_TIME
Code: |
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %d %b %Y %r %Z"
d_fmt="%m/%d/%Y"
t_fmt="%r"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="S"
week-ndays=7
week-1stday=19971201
week-1stweek=4
first_weekday=1
first_workday=1
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="ISO-8859-1"
|
I think that week-1stday=19971201 is incorrect as according to an old calendar, that is a Monday and not Sunday.
Several questions:
1) How do I change the values - for example changing to "week-1stday=19971130" (which is a Sunday)
2) If I change week-1stday do I also have to change first_weekday?
3) what is the meaning of "week-1stweek=4"?
4) How do these values get set initially?
Answers greatly appreciated. I really would like to make that calendar more functional (to me) and visually, when the calendar starts on the wrong day it makes it very hard to quickly use the calendar feature to look up a date. |
|
Back to top |
|
|
psycophobia Guru
Joined: 08 May 2005 Posts: 510 Location: uk
|
Posted: Thu Mar 09, 2006 7:49 pm Post subject: |
|
|
Does not the date command correct it ,
if the dates not ok change it useing
fill in correct date ect. |
|
Back to top |
|
|
SirronD Tux's lil' helper
Joined: 05 Jun 2002 Posts: 100 Location: Oakland, CA
|
Posted: Thu Mar 09, 2006 9:35 pm Post subject: |
|
|
I may not have been clear.
The Clock utility has a calendar that drops down when you click it.
In this calander it shows
"Mon Tue Wed Thu Fri Sat Sun"
This is not correct as it shows Monday as the first day of the week. Monday is the 2nd day of the week in the US calander. It should show as:
"Sun Mon Tue Wed Thu Fri Sat"
If I change my local to en-CA (English language "Canadian") it will show the correct calendar with Sunday as the first day, but then the rest of the system will show dates in the more international format of DDMMYYYY. (not wrong, but not what I am used to seeing).
I really just want this calendar utility (which could be a very convienient tool if it would match other calenders) to show Sunday as the first day of the week to match all of the "physical" calendars that are in my house. |
|
Back to top |
|
|
sternklang Veteran
Joined: 10 Sep 2005 Posts: 1641 Location: Somewhere in time and space
|
Posted: Thu Mar 09, 2006 9:54 pm Post subject: |
|
|
Unfortunately, this is a bug in the locale data. You can check out this bug I filed for more details. I'va also filed an upstream bug against glibc, but there has been no response to that one so far. |
|
Back to top |
|
|
highwind n00b
Joined: 11 Mar 2003 Posts: 63 Location: Midgar
|
Posted: Thu Jul 06, 2006 11:11 pm Post subject: |
|
|
I want to change the calendar to start on Sunday as well.
Anyone has a solution to this? |
|
Back to top |
|
|
iarwain Apprentice
Joined: 25 Sep 2003 Posts: 253
|
Posted: Mon Jul 10, 2006 2:15 pm Post subject: |
|
|
highwind wrote: | I want to change the calendar to start on Sunday as well.
Anyone has a solution to this? |
Funny, I want it to start on Monday but in my case it starts on Sunday.
It's very annoying. |
|
Back to top |
|
|
highwind n00b
Joined: 11 Mar 2003 Posts: 63 Location: Midgar
|
Posted: Tue Jul 11, 2006 2:35 am Post subject: |
|
|
iarwain wrote: | highwind wrote: | I want to change the calendar to start on Sunday as well.
Anyone has a solution to this? |
Funny, I want it to start on Monday but in my case it starts on Sunday.
It's very annoying. |
Interesting... what's you locale setting look like? |
|
Back to top |
|
|
iarwain Apprentice
Joined: 25 Sep 2003 Posts: 253
|
Posted: Tue Jul 11, 2006 7:44 am Post subject: |
|
|
highwind wrote: | iarwain wrote: | highwind wrote: | I want to change the calendar to start on Sunday as well.
Anyone has a solution to this? |
Funny, I want it to start on Monday but in my case it starts on Sunday.
It's very annoying. |
Interesting... what's you locale setting look like? |
Spanish locale:
Code: | LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=es_ES.UTF-8
|
|
|
Back to top |
|
|
iarwain Apprentice
Joined: 25 Sep 2003 Posts: 253
|
Posted: Wed Jul 19, 2006 5:55 am Post subject: |
|
|
Any thoughts? My output of # locale -k -c LC_TIME:
Code: | LC_TIME
abday="dom;lun;mar;mié;jue;vie;sáb"
day="domingo;lunes;martes;miércoles;jueves;viernes;sábado"
abmon="ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"
mon="enero;febrero;marzo;abril;mayo;junio;julio;agosto;septiembre;octubre;noviembre;diciembre"
am_pm=";"
d_t_fmt="%a %d %b %Y %T %Z"
d_fmt="%d/%m/%y"
t_fmt="%T"
t_fmt_ampm=""
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="d"
week-ndays=7
week-1stday=19971130
week-1stweek=0
first_weekday=1
first_workday=1
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="UTF-8" |
(Domingo=Sunday in spanish). |
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 445
|
Posted: Mon Sep 25, 2006 10:45 pm Post subject: |
|
|
Still no way to set the first day of the calendar? |
|
Back to top |
|
|
ram32 n00b
Joined: 28 Oct 2006 Posts: 15
|
Posted: Thu Jun 21, 2007 10:10 am Post subject: |
|
|
The same thing...
I use ru_RU.UTF-8, the first day in russian calendar must be Monday, but it's Sunday... |
|
Back to top |
|
|
ram32 n00b
Joined: 28 Oct 2006 Posts: 15
|
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Tue Dec 02, 2008 1:59 am Post subject: |
|
|
I have my week starting on Saturday. I don't know how to change it. I'm using the en_US.UTF-8 locale. Any tips?
dq |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Tue Dec 02, 2008 3:28 am Post subject: |
|
|
i am using kde-3.5
in which clock -date and time format-firstday of the week you can change to any day.[right click on clock]
kde4 has no such options. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Tue Dec 02, 2008 3:31 am Post subject: |
|
|
Ditto, Saturday here too with en_US.
Code: | # locale -k -c LC_TIME
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %b %e %H:%M:%S %Y"
d_fmt="%m/%d/%y"
t_fmt="%H:%M:%S"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries=""
week-ndays=7
week-1stday=19971130
week-1stweek=4
first_weekday=7
first_workday=1
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="ANSI_X3.4-1968" |
|
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Tue Dec 02, 2008 3:53 am Post subject: |
|
|
This discussion applies to Gnome-users.
dq |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3269 Location: Canada
|
Posted: Tue Dec 02, 2008 5:00 am Post subject: |
|
|
SirronD wrote: |
If I change my local to en-CA (English language "Canadian") it will show the correct calendar with Sunday as the first day, but then the rest of the system will show dates in the more international format of DDMMYYYY. (not wrong, but not what I am used to seeing).
|
Wow, 15 years in Canada and I did not know that our week is supposed to start on Sunday. And the Toronto Transit Commission selling weekly passes seems unaware of this as well |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Tue Dec 02, 2008 10:33 pm Post subject: |
|
|
It depends on where you are in Canada-- I think fr_CA starts on Monday. Either way, the week doesn't start on a Saturday in any English speaking country that I know of!
dq |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Tue Dec 02, 2008 10:39 pm Post subject: |
|
|
DOH! I never set my LANG environment variable. Shouldn't that be mentioned in the installation docs?
I added /etc/env.d/02locale. It contains:
Then ran
Code: | # env-update && source /etc/profile |
Clock still shows Saturday as first week day.
Rebooted and now the first weekday in gnome-clock is Sunday! |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3269 Location: Canada
|
Posted: Tue Dec 02, 2008 10:45 pm Post subject: |
|
|
don quixada wrote: | It depends on where you are in Canada-- I think fr_CA starts on Monday. Either way, the week doesn't start on a Saturday in any English speaking country that I know of!
dq |
Sure, but here in Toronto weekly passes are Monday-to-Sunday, not Sunday-to-Saturday either |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Wed Dec 03, 2008 12:31 am Post subject: |
|
|
overkll wrote: | DOH! I never set my LANG environment variable. Shouldn't that be mentioned in the installation docs? |
I do have that variable set (although I don't have a 02locale file) but I still am starting on Sat. Both my $LANG and $LC_TYPE are set to 'en_US.UTF-8'. Are there any other variables that need to be set? My make.conf has LINGUAS="en", but I'm not sure what this does exactly.
dq |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Wed Dec 03, 2008 12:41 am Post subject: |
|
|
How are you setting those 2 variables?
Did you try using the 02locale file instead?
What's the output of the command `locale` ? |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Wed Dec 03, 2008 1:12 am Post subject: |
|
|
I'm setting them in .bash_profile. Maybe when these variables are set it's too late in the game?
Output of 'locale':
Code: | LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.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= |
Note that LC_ALL is not set.
dq |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Wed Dec 03, 2008 1:16 am Post subject: |
|
|
Quote: | Maybe when these variables are set it's too late in the game? |
Maybe... Comment out those variables in .bash_profile and try using the 02locale file and reboot. See what happens.
Quote: | Note that LC_ALL is not set. |
I don't think that's an issue. It's the same with me and all the other posts I've seen. |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 790
|
Posted: Wed Dec 03, 2008 1:31 am Post subject: |
|
|
Yeah, that worked. It's weird that this needs to be done manually and there is no 02locale by default. Thanks.
dq |
|
Back to top |
|
|
|