Update timezone in wasm version
This commit is contained in:
parent
bf48a7765f
commit
72a37df703
|
@ -80,7 +80,9 @@ void settime(time_t ts) {
|
||||||
float fminute = (float) minute + (float) second / 60;
|
float fminute = (float) minute + (float) second / 60;
|
||||||
minute = 5 * (unsigned int) roundf(fminute / 5);
|
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);
|
//printf("%02d:%02d\n", hour, minute);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue