Go to file
Jose M. Guisado 42c22539a3 schedule: fix daylight saving problem with mktime()
mktime modifies the struct tm it receives and takes into account whether DST is
active or not (tm_isdst). tm_isdst == 0 adjusts the time, which causes the time
mismatch error.

All fields are being initialized to 0 and therefore it is assumed that the time
that has been passed is not in daylight saving time.

When the value is negative in tm.tm_isdst it delegates to mktime to guess if it
is in daylight saving time or not, this works 99% of the time.

Best way would be that ogserver knows what is its timezone and when daylight
saving applies, so tm_isdst is set to 0 or 1 accordingly.

Meanwhile, "tm_isdst = -1" provides the hotfix.
2021-04-12 17:08:00 +02:00
cfg #915 refresh SQL schema 2021-02-09 13:16:53 +01:00
src schedule: fix daylight saving problem with mktime() 2021-04-12 17:08:00 +02:00
tests #915 Add GET /oglive/test REST API function 2021-04-05 18:00:56 +02:00
.gitignore #985 add .gitignore file 2020-06-17 18:20:32 +02:00
COPYING #985 add COPYING file 2020-06-18 16:48:20 +02:00
Makefile.am #971 split wake on lan code 2020-07-06 11:14:43 +02:00
configure.ac #986 rename to ogserver 2020-06-19 11:19:55 +02:00