|
|
Is that
auto m = e_mon + SECSPERDAY * 7;
to
auto m = e_mon + SECSPERDAY * 7 +
SECSPERDAY
/2;
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.
On Wed, Mar 31, 2021 at 6:58 AM :
A quick glance at Nikita's code shows:
#define SECSPERDAY (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.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/37bc7cc5-475b-49fb-a7b8-b377c65e8fabn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |