When using the firmware in the time zone TZ_CET, the time is changed to some strange time each time a wifi connection is made. The cause is a signed/unsigned bug: timezones are specified in unsigned 32-bit integer values, but the function atol is used (and this is a signed function).
tzonestr = 2730856407
best strength = -49, best ssid = xxxx, tz = 2147483647 = 7fffffff
Next to that in the struct WiFiAP, the timezone is specified signed, which could cause bugs.
When using the firmware in the time zone TZ_CET, the time is changed to some strange time each time a wifi connection is made. The cause is a signed/unsigned bug: timezones are specified in unsigned 32-bit integer values, but the function
atol
is used (and this is a signed function).Next to that in the struct WiFiAP, the timezone is specified signed, which could cause bugs.