utils: Use ISO weekday numbering for 'get_first_weekday' function
Change the 'get_first_weekday' function to number the weekdays Monday(1)-Sunday(7) like ISO does. Change the function name to reflect that. Add tests for different locales, although the tests depend on system-installed locales. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/822>
This commit is contained in:
@@ -63,7 +63,7 @@ GdkPaintable* gcal_util_get_circle_paintable_from_color (const GdkRGBA
|
||||
gchar* gcal_util_get_desc_from_component (ECalComponent *component,
|
||||
const gchar *joint_char);
|
||||
|
||||
gint gcal_util_get_first_weekday (void);
|
||||
gint gcal_util_get_first_weekday_iso (void);
|
||||
|
||||
ECalComponent* gcal_util_build_component_from_details (const gchar *summary,
|
||||
GDateTime *initial_date,
|
||||
|
||||
Reference in New Issue
Block a user