Hello,
I'm using the standard Calendar designed by EhLib, but it's getting the wrong date on the days of the week.
For example:
July / 2019 is showing that started on a Tuesday, but the standard calendar began on a Monday. My default language is Portuguese / Brazil and the beginning of the week as "Sunday" LOCALE_IFIRSTDAYOFWEEK (Sunday).
How can I fix this?
I made this change:
TDaysCalendarViewEh.AdjustDateToStartForGrid
in the source: DateTimeCalendarPickersEh.pas
on line 1781:
Code:
if FFirstWeekDayNum> 0 then
Result: = Result + FFirstWeekDayNum - 7;

I changed the 7 to 6 and began to draw in the correct position the days in the calendar
Code:
if FFirstWeekDayNum> 0 then
Result: = Result + FFirstWeekDayNum - 6;
But I do not know if this would be the best way to fix this.