GNOME Bugzilla – Bug 98811
Calendar should change the week's beginning day depending on the time zone
Last modified: 2004-12-22 21:47:04 UTC
Nowadays, the calendar weeks always begins on Sunday, but there are many places where the week begins in Monday, time-admin should know it depending on the time zone
Kal, I added this function in main.c: xst_time_configure_calendar (XstTimeTool *tool) { gint firstday; GtkWidget *calendar = xst_dialog_get_widget (XST_TOOL (tool)->main_dialog, "calendar"); setlocale (LC_ALL, ""); firstday = (int) *(nl_langinfo (_NL_TIME_FIRST_WEEKDAY)); if (firstday == 1) gtk_calendar_display_options (GTK_CALENDAR (calendar), GTK_CALENDAR_WEEK_START_MONDAY | GTK_CALENDAR_SHOW_HEADING | GTK_CALENDAR_SHOW_DAY_NAMES); else gtk_calendar_display_options (GTK_CALENDAR (calendar), GTK_CALENDAR_SHOW_HEADING | GTK_CALENDAR_SHOW_DAY_NAMES); } I think it works, with locales like en_EN and en_AU it shows sunday as first day and with locales like es_ES, fr_FR and sv_SE it shows monday (just like it should do)