After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98811 - Calendar should change the week's beginning day depending on the time zone
Calendar should change the week's beginning day depending on the time zone
Status: RESOLVED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: time-admin
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Carlos Garcia Campos
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2002-11-17 21:43 UTC by Carlos Garnacho
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carlos Garnacho 2002-11-17 21:43:16 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
Comment 1 Carlos Garnacho 2003-02-10 00:02:40 UTC
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)