I dont quite understand the code, so any other changes ?
On Thursday, April 1, 2021 at 6:10:22 AM UTC+5:30 wrote:
Yeah
I tried the fix proposed by spitzak. It seems to work.
Thanks everybody for comments.
Jer'
Le mercredi 31 mars 2021 à 18:13:08 UTC+2, spitzak a écrit :
A real quick fix is to add 12 hours to the time so it figures out what day contains noon+n*24 rather than midnight+n*24, which will not change when daylight savings time turns on/off.
As someone else suspected, it might have to do with daylight saving
changes. Similar issues appear around end of October.
A quick glance at Nikita's code shows:
#defineSECSPERDAY (60 * 60 * 24)
Day calculations in update_table() are performed by adding SECSPERDAY as delta seconds and using localtime() to find the date. This will be thrown off by time changes.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.