diff --git a/core/Model/CalendarModel.vala b/core/Model/CalendarModel.vala index 3e3b8cbd3..b6505c46d 100644 --- a/core/Model/CalendarModel.vala +++ b/core/Model/CalendarModel.vala @@ -68,7 +68,11 @@ public class Maya.Model.CalendarModel : Object { } private CalendarModel () { +#if _NL_TIME_FIRST_WEEKDAY int week_start = Posix.NLTime.FIRST_WEEKDAY.to_string ().data[0]; +#else + int week_start = 0; +#endif if (week_start >= 1 && week_start <= 7) { week_starts_on = (Maya.Settings.Weekday)week_start-1; }