Closed esaulenka closed 2 years ago
Yes, you are right, the code is wrong.
I will change it like the one I made for webserver.c
int offtzo= 0; int offtzoh= 0; sscanf(tzo,"%d:%d",&offtzoh,&offtzo); g_device->tzoffseth = offtzoh; g_device->tzoffsetm = offtzo;
Daylight saving time is on by default. Ok, i will add it.
Daylight saving time is on by default.
Yes, I see. But our government already turned it off :-)
Ok, i will add it.
Thanks for this improvement!
Hello!
tzoffseth
andtzoffsetm
are only single byte variables, butsscanf
will write 4 bytes in it. So, you will mess up nearest variables.