Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When clicking on the Clock applet (Clock version 2.26.0) in Gnome (Ubuntu Jaunty) a calendar is shown. Each week starts on Sunday, but I want Monday as starting day. How can I achieve this?

share|improve this question
up vote 4 down vote accepted

this depends on your locale.

you need to check LC_TIME change first_weekday from 1(sunday) to 2(monday)

i just googled and this seems quite a comprehensive guide:

  1. From your home directory fire up a terminal, log in as root:
    sudo bash

  2. Make a copy of your locale file in your home directory
    cp /usr/share/i18n/locales/en_US en_US_modified

  3. create a directory "locales"
    mkdir locales

  4. open up en_US_modified in an editor, search for the section called "LC_TIME"

  5. look for the line
    first_weekday 1

  6. Change the 1 to a 2

  7. Save the file, exit your editor and go back to the terminal

  8. Run this command which will create a directory full of new locale settings inside of the "locale" directory you made in your home directory:
    localedef -c -i en_US_modified -f UTF-8 locale/en_US.utf8

  9. Backup your old locale settings by going to /usr/lib/locale and changing the name of
    en_US.utf8 to en_US.utf8_ORIGINAL
  10. Copy the new en_US.utf8 directory your created in your home directory in the subdir "locales" to /usr/lib/locale
  11. Restart your system

Reference: ; reformatted for superuser by me

share|improve this answer
Wow... I'll see if I think it's worth it to go through that. If not, I'll mark your answer as accepted. – Peter Jaric Jun 6 '10 at 18:13
note that it will change ALL programs... unless, of course, you changed the applet run to "e.g. appletname" and then you need to make clone of a new en_US clone with the necessary changes. ehm, actually i haven't been linux for ages. this brings back my memory when i was doing locale debugging for debian potato (that is yearS ago...) – bubu Jun 6 '10 at 18:27
OMG. Sorry I lol'd on this one. 2010, desktop use. :D – Shiki Jun 6 '10 at 18:58
@Shiki: I love Linux, I run versions of Ubuntu on all my computers (work and home) and nothing else, but things like this helps me avoid becoming a fanatic :) – Peter Jaric Jun 6 '10 at 21:10
@bubu: There's no problem for me if it changes all programs. Here in Sweden the week starts with Monday. – Peter Jaric Jun 6 '10 at 21:24

Just set LC_TIME to a locale that starts its week on monday. eg: LC_TIME=en_GB.UTF-8

Make that change permanent by editing /etc/default/locale (or /etc/locale.conf on some distros)

The best way is to set your locale is on a per user setting, for example in gdm at login. If there is a specific need for more complex things, you can set the locale in /etc. Note that this will affect all users on the system.

share|improve this answer
+1 because this is the easy way. shouldn't we really set LANG? anyway, I tried several locales on ubuntu 12.10, including it_IT, and all result in cal to show the Sunday as first weekday. probably worth a bug report. – mariotomo Jan 30 '13 at 8:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .