Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clock calendar starts on Monday, not Sunday?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
SirronD
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2002
Posts: 100
Location: Oakland, CA

PostPosted: Thu Mar 09, 2006 7:42 pm    Post subject: Clock calendar starts on Monday, not Sunday? Reply with quote

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
Code:

LC_TIME="en_US"


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
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 510
Location: uk

PostPosted: Thu Mar 09, 2006 7:49 pm    Post subject: Reply with quote

Does not the date command correct it ,

Code:
date


if the dates not ok change it useing

Code:
date MMDDhhmmYYYY


fill in correct date ect.
Back to top
View user's profile Send private message
SirronD
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2002
Posts: 100
Location: Oakland, CA

PostPosted: Thu Mar 09, 2006 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu Mar 09, 2006 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
highwind
n00b
n00b


Joined: 11 Mar 2003
Posts: 63
Location: Midgar

PostPosted: Thu Jul 06, 2006 11:11 pm    Post subject: Reply with quote

I want to change the calendar to start on Sunday as well.
Anyone has a solution to this?
Back to top
View user's profile Send private message
iarwain
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 253

PostPosted: Mon Jul 10, 2006 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
highwind
n00b
n00b


Joined: 11 Mar 2003
Posts: 63
Location: Midgar

PostPosted: Tue Jul 11, 2006 2:35 am    Post subject: Reply with quote

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
View user's profile Send private message
iarwain
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 253

PostPosted: Tue Jul 11, 2006 7:44 am    Post subject: Reply with quote

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
View user's profile Send private message
iarwain
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 253

PostPosted: Wed Jul 19, 2006 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 445

PostPosted: Mon Sep 25, 2006 10:45 pm    Post subject: Reply with quote

Still no way to set the first day of the calendar?
Back to top
View user's profile Send private message
ram32
n00b
n00b


Joined: 28 Oct 2006
Posts: 15

PostPosted: Thu Jun 21, 2007 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
ram32
n00b
n00b


Joined: 28 Oct 2006
Posts: 15

PostPosted: Fri Jun 22, 2007 9:04 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=182869
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Tue Dec 02, 2008 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Tue Dec 02, 2008 3:28 am    Post subject: Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Tue Dec 02, 2008 3:31 am    Post subject: Reply with quote

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
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Tue Dec 02, 2008 3:53 am    Post subject: Reply with quote

This discussion applies to Gnome-users.

dq
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3269
Location: Canada

PostPosted: Tue Dec 02, 2008 5:00 am    Post subject: Reply with quote

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
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Tue Dec 02, 2008 10:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Tue Dec 02, 2008 10:39 pm    Post subject: Reply with quote

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:
Code:
LANG="en_US.UTF-8"

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
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3269
Location: Canada

PostPosted: Tue Dec 02, 2008 10:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Wed Dec 03, 2008 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Wed Dec 03, 2008 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Wed Dec 03, 2008 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Wed Dec 03, 2008 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Wed Dec 03, 2008 1:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum