diff --git a/klock4_wasm.c b/klock4_wasm.c index f4e4001..188d27a 100644 --- a/klock4_wasm.c +++ b/klock4_wasm.c @@ -80,7 +80,9 @@ void settime(time_t ts) { float fminute = (float) minute + (float) second / 60; minute = 5 * (unsigned int) roundf(fminute / 5); - unsigned int hour = (ts / (60*60) + 1) % 12; + unsigned int timezone = 1; + unsigned int daylight_savings = 1; + unsigned int hour = (ts / (60*60) + timezone + daylight_savings) % 12; //printf("%02d:%02d\n", hour, minute);