On 3/31/21 8:31 AM Francois Arrona wrote:
> I'm using the Fl_Calendar widget and face a strange behaviour :
> For march, if the system date is march 27 2021, everything is OK. If the
> system date is march 28, it does not display the cell for march 28. It
> displays march 27 (saturday) and march 29 (sunday, which is wrong).
> Then if system date is march 29, it does only display the week from 22
> to28 (and forget the previous weeks).
I can confirm this odd behavior with Nikita Egorov's Fl_Calendar widget
from:
https://github.com/nikego/Fl_Calendar
As someone else suspected, it might have to do with daylight saving
changes. Similar issues appear around end of October.
I just did a quick test but did not investigate further.
What I found so far: at daylight savings change time in spring
*sometimes* the day of the change is missing or the widget displays
dates of Feb instead of Mar.
At the change time in autumn the date (Sunday) is shown twice (in this
year Oct 31 is shown as Sun and Mon) and the following dates move one
weekday further.
The next month is shown correctly.
See for instance attached image (Mar 28 is missing).