Summary: @fix
Test Plan:
1. elm_calendar_first_day_of_week_set(cal, ELM_DAY_MONDAY);
2. First week string should be changed to "Mon"
Reviewers: tasn, cedric
Reviewed By: cedric
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4135
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
}
}
part[3] = i + '0';
- elm_layout_text_set(obj, part, sd->weekdays[i]);
+ elm_layout_text_set(obj, part, sd->weekdays[(i + sd->first_week_day) % ELM_DAY_LAST]);
weekday += 86400; /* Advance by a day */
}
}